Conversation
… to identify when/where errors happen
…an amara caption.
…erly when there are load errors.
css/VideoPlayer.css
Outdated
There was a problem hiding this comment.
Any reason you are doing this here if it's not internationalizable?
Conflicts: js/VideoPlayer_transcript.js
js/ErrorPanel.js
Outdated
There was a problem hiding this comment.
Any reason to expose a callback here instead of having an event that we can attach listeners to?
|
I've updated this branch to use an event for the retry callback, but I haven't yet addressed the other comments. Regarding event on track load error, in Safari it seems the track element (not its TextTrack object) does fire an "error" event. We should use that when it's available. The Captionator polyfill does NOT fire this error. |
There was a problem hiding this comment.
Perhaps instead of converting these to arrays and using %0 and %1 in the string template. We could switch to using %language and %medium in the template and change the values to being an object. This would probably make it easier to read the template and ensure that the correct data is put in each token.
|
@acheetham I ran through the unit tests. There seems to be some strange timing issues happening that are causing the tests to fail when the all-tests.html file is run. There is also an issue with the VideoPlayerIntegration-tests for "Video Player Error Handling Tests: Transcript (amara) load error", which works when run by itself but not as part of the test suite. Other than that the unit tests seem fine in Firefox. Webkit browsers seem to have more of these timing issues. |
|
|
No description provided.