Skip to content
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

Can we add custom style to captions rendered shaka.text.UITextDisplayer? #7796

Open
rabinmahato opened this issue Dec 23, 2024 · 3 comments
Open
Labels
status: waiting on response Waiting on a response from the reporter(s) of the issue type: question A question from the community

Comments

@rabinmahato
Copy link

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.

@rabinmahato rabinmahato added the type: question A question from the community label Dec 23, 2024
@avelad
Copy link
Member

avelad commented Dec 24, 2024

Currently not possible, sorry!

@avelad avelad added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Dec 24, 2024
@rabinmahato
Copy link
Author

@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?

@shaka-bot shaka-bot removed the status: waiting on response Waiting on a response from the reporter(s) of the issue label Dec 24, 2024
@avelad
Copy link
Member

avelad commented Dec 24, 2024

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.

@avelad avelad added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting on response Waiting on a response from the reporter(s) of the issue type: question A question from the community
Projects
None yet
Development

No branches or pull requests

3 participants