Skip to content

fix(author): an Interactive Video ends with a submit screen, from which it sends its score - #318

Merged
alekswebnet merged 5 commits into
mainfrom
fix/iv-submit-screen
Dec 1, 2026
Merged

alekswebnet merged 5 commits into
mainfrom
fix/iv-submit-screen

Conversation

@alekswebnet

@alekswebnet alekswebnet commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #317.

What changes

  • Where a source writes no endscreens, a build gives every Interactive Video a submit screen at 86400 s, past any video's end. Interactive Video moves a screen past the end to the end as the video loads (addControls), by the length its own player says, and relabels it. So one time serves every source, including YouTube, Panopto, Echo360, a WebM and a file left at an address, for which the build reads no length. It also serves a source whose video is later swapped.
  • The build labels its own screen with the word alone, Submit screen in the content's language. A screen the source writes at a real time is labelled as the library does, 0:30 Submit screen, and is still refused past a length the build reads. A screen written at 86400 s or later counts as at the end, like the build's, and is not refused.
  • Read leaves out only the build's own screen: one screen, past the end, labelled with the content's word. Any other is written as stored. A package with none reads back as [], with a note where the video has a question or a summary, since it then sends no score.
  • The outline leaves the build's screen out: the author did not write it.
  • The type file says what was measured: the score is sent when the learner presses Submit. The screen opens at the end if a question was tried, and from the star at any time. A video with no question and no summary has none. design/author.md holds the rules; design/verify.md names addControls, which does the move.

Measured in Chrome (learner journeys' harness from #315, one True/False at 1–3 s, answered, then played or sought to the end):

Source Build reads a length Screen after load At the end Submit sends
MP4 file, 10 s yes moved to 10 shown completed 1/1
WebM file, 165.5 s no moved to 165.468 shown 1/1
YouTube, 19 s no moved to 19 (player says 19.02 at the end) shown 1/1
Vimeo, 185 s yes (oEmbed) moved to 185 shown 1/1
Panopto, 5 min (upenn.hosted.panopto.com) no moved to 299.947 once the learner pressed Panopto's play (it is press-to-play) shown 1/1
Echo360 no not measured: Echo360 serves H5P.Video only where the owner made an H5P link; the public video tried (echo360.org/public/media/…) answers 404 at its H5P address; to do in #319
  • Nothing answered: no screen at the end, nothing sent.
  • The star pressed at 2.75 s opens the screen; Submit there sends 1/1.
  • A video with only a text shows no star and no screen.
  • One Vimeo video (76979871) refuses playback ("Rights issue") in Playwright's Chrome, headless and in a window, on a bare page outside the player too. Another Vimeo video plays.

Tests

  • build.test.ts: the screen past the end, also in German and with no length read (YouTube, inside a Column); []; a written screen labelled, an hour-long one too, one past a read length refused, and one at 86400 s kept; the outline without it.
  • read.test.ts: the build's screen reads back left out, in English and German, and one past the end under another word is kept; a screen at 12 s, one at a 30 s video's end as H5P's editor saves it, and two screens read back as stored; none reads back as [] with the note where the video has a question, and without it where it has only a text.
  • page.test.ts: a linked file gets the screen. layout.test.ts: no new note.
  • Author: 335 tests, type check, pnpm comments. apps/skills: the Interactive Video example builds and plays.
  • Not run: Firefox and WebKit.

Release: h5p-author. The same source now builds a video that sends its score on Submit, whatever plays it.


Summary by cubic

Fixes Interactive Video never sending completed: it sends a learner's score only from a submit screen, and a build added none.

  • A build now puts one at 86400 s, past any video's end, for every source; the library moves it to the end as the video loads, by the length its player says.
  • The screen's label is the library's own, in the content's language; a source no longer writes one.
  • endscreens: [] is none, and a package with none reads back as [], so it builds again without one; where the video has a question or a summary, a note says it then sends no score.
  • Reading a package back leaves the build's own screen out, so the source follows a changed video, and writes any other as stored.

Written for commit 0025401. Summary will update on new commits.

View guided diff Turn on auto-fix

…ch it sends its score

H5P's editor gives a new video one at its end; a build wrote none, so the video never sent
completed. A build now puts one at the length it reads, notes where it reads none, and a
package with none reads back as [] so it builds again without one.
…ead back as the build's

The build reads a length only for an MP4 file and Vimeo, so YouTube, Panopto, Echo360, a WebM
and a file left at an address got no screen and sent no score. Interactive Video moves a screen
past the end to the end as the video loads, by its player's length: measured with an MP4 and a
WebM file, YouTube and Vimeo. The build now writes one at 86400 s for every video, labelled with
the word alone.

Read leaves a package's one screen out where a build makes the same, so the source follows a
changed video, and writes another as stored. A package with none reads back as [] with a note
where the video has a question or a summary. The docs say the score is sent on Submit, from a
screen that opens at the end once a question was tried or from the star.
…a screen past the end is at the end

Read left out any one screen and counted on the rebuild to write it back, which a failed rebuild
lost. It now leaves out only a screen past the end under the content's word, the build's own.
A source's screen past the end is no longer refused where the length is read: Interactive
Video moves it to the end, as it does the build's. Panopto measured: the screen moves to its
length once the learner presses play, shows at the end, and Submit sends the score.
@alekswebnet
alekswebnet merged commit 28daf83 into main Dec 1, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

h5p-author: an Interactive Video it builds never sends a score

1 participant