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

first subtitle(0:00) is at the top-center of player and disappear on mobile #4659

Closed
Yalhu opened this issue Oct 12, 2017 · 3 comments
Closed

Comments

@Yalhu
Copy link

Yalhu commented Oct 12, 2017

Description

first subtitle(0:00) is at the top-center of player.
when i listener loadedmetadata and manualy select the subtitle it is at top-left of player.like this:
defaulttrack

On mobile the first subtitle never show, even when playing it doesn't appear.
Setting TextTrack to defaults seems have no influence on this. #4315

this happened only when the first time open page.When replay or fall back to beginning ,first subtile at the bottom and it appears on mobile.

Expected

I want fist subtitle at the bottom of video as the second one. And it can be shown on mobile, even it will not auto play.

versions

videojs 6.2.1

@Yalhu
Copy link
Author

Yalhu commented Oct 12, 2017

Now when i open a new window the first subtitle does't show anymore. and the old window that i had opened hours age, the first subtile is still at the top-left of player.
What's more ,when i open a new incognito window, first subtitle is at the top-center of player.

As far now when i restart browser(chrome), first subtitle never show whether on incognito window . I didn't make any updates.

What's wrong? There is my code:player.addRemoteTextTrack(options,true).There is no difference with code player.addRemoteTextTrack(options).

@gkatsev
Copy link
Member

gkatsev commented Dec 1, 2017

Would be great to get a reduced test case for this. Though, my initial thought is that the player starts out small and then gets resized but the captions have already painted before the size change and they didn't know the size of the player changed so they didn't get updated.

@gkatsev
Copy link
Member

gkatsev commented May 4, 2018

Closing this issue due to lack of activity. If it is still a problem and we get more information and a reduced test case, we will happily re-open the issue.

@gkatsev gkatsev closed this as completed May 4, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 26, 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