-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading all the cues from a caption #1966
Comments
We need to write documentation for the new captions. Sorry we haven't done it yet. Meanwhile, you can find some links to the text track spec (which is what our API is based on) in this issue: #1655 I'm going to close this, but please post more related questions here if you have it. |
At the time the plugin runs, |
Yeah, there's currently no event for that currently from the native side, but if you're using the |
This worked: if (!track.cues) {
window.setTimeout(function() { createTranscript(); }, 100);
} else {
createTranscript();
} I'm using |
Yep, that's what we're doing right now :) https://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-controls.js#L498-L500 |
@acv, you and I have done something very similar: https://github.com/OwenEdwards/videojs-transcript. I'd love to get the tests passing too, if you have any thoughts? @gkatsev, this was one of the reasons I'd proposed the 'loadeddata' patch for tracks in #1949, but you're right, there needs to be a cleaner, more standards-compliant solution. |
I'm very new to HTML5 (or javascript newer then Netscape 4) the spec seems to imply that |
As @gkatsev mentions on #1949, the I think your solution (with the |
I'm trying to port https://github.com/walsh9/videojs-transcript to 4.12 from 4.9 and obviously, the changes in tracks have been challenging. I think I have it pretty much taken care of except for this bit that completely stumps me:
I can't find
readyState
anywhere either as a property or method. Nor can I figure out thetrack.load()
replacement. And while I can useaddEventListener()
for the event handler,loaded
never fires, nor doesload
or, well, anything else I can find.Without those checks,
cues
is empty by them timecreateTranscript()
is called and so I can't build a transcript from the captions.Javascript is far from my first (or fifth) language so I can't figure out how to get there from the new code.
The text was updated successfully, but these errors were encountered: