Sync HTML with an audio track, narrating the presentation #536
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.
This merge request creates an alternative presenter, namely FILE.narrated.sozi.html for the input FILE.svg presentation, which will play the presentation file and a narrative.flac audio file in sync. The common use case is to share a captured presentation without requiring to convert the presentation and audio track to a video format which has two benefits:
Currently, the audio file must be named narrative.flac and placed in side of the FILE.narrated.sozi.html file.
Also the data-time-to-slide attribute in the FILE.narrated.sozi.html file needs to be updated manually.
These items (audio file name and time-to-slide) should be moved to the editor later.
The format of the data-time-to-slide attribute is as follows:
For example,
<audio id="narrative" controls data-time-to-slide="0,4,8,11:2,13:4">
means thatThe browser audio controls are shown at the bottom-right of the screen. Seeking the audio to any time will automatically change the rendered frame. And changing the rendered frame (e.g., by URL or clicking on the frames list) will automatically seek the audio to the corresponding moment.