-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Captions with Shaka Player #750
Comments
You can use HTML5 Shaka doesn't quite play by the standard rules, so you we can't handle it like the other libraries. See #994 |
I managed this issue by overriding textDisplayFactory of shaka-player:
|
Thanks for the update! I'm not sure what that does though? Does it make Shaka Player use multiple tracks (one per language) like the other libraries (see #994). I'm guessing not? |
according to shaka-project/shaka-player#1443 I Implement a custom text displayer for shaka which does nothing and let plyr handle displaying captions. |
Thanks! I'll leave this open until there's a full example of how to use Plyr with Shaka Player and captions, or if I write one myself. I prefer not to have to dig into the Shaka Player api again. |
using shaka player I couldn't add a track to player nor manually neither programmatically.
Manually
placing
<track src="src" kind="subtitles" >
inside<video>
Programatically
using shaka player
addTextTrack(uri, language, kind, mime, opt_codecopt, opt_labelopt)
methodIn both ways, the vtt file is fetched from the server but it doesn't show anything. using first method cause a
cc
icon appear next to the volume control but it doesn't do anything.The text was updated successfully, but these errors were encountered: