video on same page as exercises

13 views
Skip to first unread message

Taran Funk

unread,
May 22, 2026, 5:05:35 PM (7 days ago) May 22
to PreTeXt support
I am planning to set up each of my pages to be structured as definitions/examples, a video going over the same material, followed by some graded exercises.
The problem I'm having is that the exercises are not loading correctly when the video is on the page. With the video removed, the exercises load perfectly and there is no problem with the video being playable etc.
Video is being embedded with:
<video label="vid-Slope" source="RWT2.1-Finding-Slope.mp4"/>
Exercises are being referenced in with:
<xi:include href="exercises/ex-Slope.ptx" />

Andrew Scholer

unread,
May 22, 2026, 6:26:54 PM (7 days ago) May 22
to pretext...@googlegroups.com
Do you have a link to a live sample of the output? Or a copy of the source that includes the full exercise? 

I added a video to a page with exercises and did not have an issue. So the issue you are seeing must be more complex than just video + exercise.

Andrew Scholer

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/1964c1c9-5420-4c2c-8f2e-5e1b4a506b4an%40googlegroups.com.

Taran Funk

unread,
May 23, 2026, 1:06:45 AM (7 days ago) May 23
to PreTeXt support
I just deployed it on github, and the deployment has the exercises displaying properly. However, my command "pretext view web" still shows the exercises incorrectly.
Here is the deployment:
https://thfunk.github.io/UNO-MATH-1300/Slope.html
Hopefully that link works. At least it shows up well there! Just not sure why my preview doesn't display correct when the video is included.

Andrew Scholer

unread,
May 23, 2026, 11:38:13 AM (6 days ago) May 23
to pretext...@googlegroups.com
It looks like PreTeXt's preview server takes a long time to send that large video and is single threaded. So loading the Runestone js files (Runestone is loaded in pieces on demand) is blocked while the video is sent to the browser. If you just wait long enough, the components will load.

On a real server, loading the JS will not be blocked by waiting for the video to finish being sent. 

Note for Oscar - 
It might be worth trying an experiment to spin up the preview server with multiple threads. And/or remove the cache blocking code on large files or for video extensions.

Reply all
Reply to author
Forward
0 new messages