When use "textTracks" and "paused", player will get stuck after 2 videos
See original GitHub issueCurrent behavior
Play videos that has textTracks
and also paused
is binded to state in order to use custom controls.
Video player completely stuck after 2 videos. Cannot play at all.
If no textTracks or no paused, you can play videos forever
Reproduction steps
-
git clone https://github.com/gsunsnackv/react-native-player-stuck
-
yarn
-
Open a Android emulator (with Android 9)
-
react-native run-android
-
Click the watch button and watch the video
-
Verify the pause button works
-
Go back
-
Repeat 5 to 7 and you will get stuck in 2 or 3 videos
-
(Below are optional) Remove line 159
paused={this.state.paused}
-
Reload and repeat 5 to 7. Things will work fine
-
Put back line 159
-
Remove line 150 to 158
textTracks={[
{
title: 'English CC',
language: 'en',
type: TextTrackType.VTT,
uri: captions[index],
},
]}
selectedTextTrack={{type: 'title', value: 'English CC'}}
- Reload and repeat 5 to 7. Things will work fine
Expected behavior
Do not stuck
Platform
Which player are you experiencing the problem on:
- Android ExoPlayer
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:14 (6 by maintainers)
Top Results From Across the Web
When use "textTracks" and "paused", player will get stuck after ...
Play videos that has textTracks and also paused is binded to state in order to use custom controls. Video player completely stuck after...
Read more >HTMLMediaElement.textTracks - Web APIs | MDN
A TextTrackList object representing the list of text tracks included in the media element. The list of tracks can be accessed using textTracks[n] ......
Read more >When my students are on a video and pause it ... - Google Help
A student will pause to complete a task, when they resume the audio is there but video is frozen. They have to restart...
Read more >canalplus/rx-player - Gitter
Hello again, We noticed that the current implementation ignores UTCTiming element from the manifest. This is a problem for live content on devices...
Read more >Mux Player releases
Every new release of Mux Player is be posted here with release notes ... Feature: Conditionally use title for title metadata in Mux...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@gsunsnackv Can you test the branch from this PR? https://github.com/react-native-community/react-native-video/pull/1655
I have been testing it on your example project, and seems now is not producing the bug.
Could someone have a look at this? It’s been a while