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

Disable native text tracks by default in html5 #1865

Closed
wants to merge 1 commit into from

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented Feb 13, 2015

Chrome, and possibly some other browsers, show captions by default, which is unwanted behavior.
Instead, on loadstart, change the mode of each captions or subtitles track to 'disabled'.
This is done in loadstart because trying to change data of text tracks
wholesale any earlier will be a no-op.

This has been tested with autoplaying videos in chrome.

Chrome, and possibly some other browsers, show captions by default, which is unwanted behavior.
Instead, on loadstart, change the mode of each captions or subtitles track to 'disabled'.
This is done in loadstart because trying to change data of text tracks
wholesale any earlier will be a no-op.
@gkatsev gkatsev added this to the Captions milestone Feb 13, 2015
@heff
Copy link
Member

heff commented Feb 14, 2015

lgtm!

@heff
Copy link
Member

heff commented Feb 14, 2015

Safari also shows captions by default, but not subtitles.

There's a related Chrome bug for this.

@gkatsev gkatsev closed this in 52e6768 Feb 14, 2015
@gkatsev gkatsev deleted the hide-captions-by-default branch February 14, 2015 01:01
@heff heff mentioned this pull request Aug 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants