Can we add custom style to captions rendered shaka.text.UITextDisplayer?
Closed this issue · 4 comments
Have you read the Tutorials?
Yes. I have tried to add plugin for shaka.text.UITextDisplayer. It didn't work. After I added the plugin the subtitles are not rendering nat all.
Have you read the FAQ and checked for duplicate open issues?
Yes
If the question is related to FairPlay, have you read the tutorial?
No
What version of Shaka Player are you using?
4.3.6
What browser and OS are you using?
Chrome Version 131.0.6778.205
Please ask your question
Can we add custom style to captions rendered shaka.text.UITextDisplayer?
Please help me to create a plugin for shaka.text.UITextDisplayer so that I can my custom styles to the subtitle dom wrappers.
Currently not possible, sorry!
@avelad ,
Can you please help me to create a custom plugin for shaka.text.UITextDisplayer so that I can my custom styles to the subtitle DOM wrappers?
Documentation: https://nightly-dot-shaka-player-demo.appspot.com/docs/api/tutorial-plugins.html (section Subtitle/caption displayers
)
You can use the code from https://github.com/shaka-project/shaka-player/blob/main/lib/text/ui_text_displayer.js and change it with your styles, but we don't have a tutorial as such to do your customization.
Closing due to inactivity. If this is still an issue for you or if you have further questions, the OP can ask shaka-bot to reopen it by including @shaka-bot reopen
in a comment.