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

How to force player to use only native caption on iOS iPhone? #7570

Open
jakubkrolikowski opened this issue Nov 12, 2024 · 2 comments
Open
Assignees
Labels
status: waiting on response Waiting on a response from the reporter(s) of the issue type: question A question from the community

Comments

@jakubkrolikowski
Copy link

Have you read the Tutorials?
yes

Have you read the FAQ and checked for duplicate open issues?
yes

What version of Shaka Player are you using?
4.10.26

What browser and OS are you using?
Safari on iOS 17.5.1 (iPhone 12)

Please ask your question
I noticed that Shaka Player in fullscreen mode on iPhone displays captions in two modes simultaneously - natively and rendered by Shaka's text displayer. Just before the native caption is displayed, I can see the shaka-rendered subtitle flash for a moment.
More over, shaka-rendered subtitles are displayed only when I exit the fullscreen mode (native are hidden then).

Turning off shaka controls with
controls.setEnabledShakaControls(false);
does not help, the subtitles are rendered twice anyway.

How can I force the player to use only native captions rendering, or only rendering by Shaka TextDisplayer (not both in the same time)?

I use UITextDisplayer (configuration below), however with default SimpleTextDisplayer problem is the same.

player.configure({
        textDisplayFactory: function() {  
            return new shaka.text.UITextDisplayer (video, document.getElementById('shaka-content')):
         }
});

@jakubkrolikowski jakubkrolikowski added the type: question A question from the community label Nov 12, 2024
@joeyparrish
Copy link
Member

If the text is rendered natively, we might have fed text tracks to the platform somehow. UITextDisplayer should only be active when we are in control of text tracks at the player level, and they are not fed to the platform (through src= or TextTrack/VTTCue APIs).

@shaka-bot
Copy link
Collaborator

@jakubkrolikowski Does this answer all your questions? If so, would you please close the issue?

@shaka-bot shaka-bot added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Nov 16, 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

4 participants