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 PR adds an example which shows how a dash.js player can be connected to a TimingObject.
The example uses three small libraries that implement parts of the Timing Object specification. I used JSPM for now to load those libraries. Please let me know if there is a better way to do this.
The example deliberately disables all the default video controls to make sure they don't interfere with the synchronization. The play and pause buttons are wired up manually.
It might be an option to move this logic into dash.js itself to simplify the process. It could reduce the example to a one-liner in the end.
I think it would also be possible to implement this as an extension which overrides the
play()
andpause()
methods.Or we just leave the example as it is to keep things simple. :-)