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

Hiding subtitles #2830

Closed
osanwe opened this issue Nov 20, 2015 · 1 comment
Closed

Hiding subtitles #2830

osanwe opened this issue Nov 20, 2015 · 1 comment

Comments

@osanwe
Copy link

osanwe commented Nov 20, 2015

Hello!

I've added several subtitles to a video with tracks option and had a switcher on the control bar. It's good. But I want show all subtitles near to player, not over the video, like on edx. Therefore I read a subtitles file and show its content. It isn't a problem. But how can I hide subtitles on the video? Now I use *.srt file instead of *.vtt, but I think it isn't a right way.

Thanks in advance!

@gkatsev
Copy link
Member

gkatsev commented Mar 28, 2016

The best way to not display the subtitles, is to just remove them from the player. However, you can also change the track's mode from showing to hidden if you want them to still fire cuechange events but not actually be visible to the viewer.
Hope that helps.

@gkatsev gkatsev closed this as completed Mar 28, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants