Repository navigation
fix(author): an Interactive Video ends with a submit screen, from which it sends its score - #318
Merged
Merged
Conversation
…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.
This was referenced Nov 30, 2026
…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.
…er made an H5P link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #317.
What changes
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.Submit screenin 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.[], with a note where the video has a question or a summary, since it then sends no score.design/author.mdholds the rules;design/verify.mdnamesaddControls, 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):
completed1/1Tests
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.pnpm comments.apps/skills: the Interactive Video example builds and plays.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.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.Written for commit 0025401. Summary will update on new commits.