question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When use "textTracks" and "paused", player will get stuck after 2 videos

See original GitHub issue

Current 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

  1. git clone https://github.com/gsunsnackv/react-native-player-stuck

  2. yarn

  3. Open a Android emulator (with Android 9)

  4. react-native run-android

  5. Click the watch button and watch the video

  6. Verify the pause button works

  7. Go back

  8. Repeat 5 to 7 and you will get stuck in 2 or 3 videos

  9. (Below are optional) Remove line 159

paused={this.state.paused}
  1. Reload and repeat 5 to 7. Things will work fine

  2. Put back line 159

  3. Remove line 150 to 158

textTracks={[
                {
                  title: 'English CC',
                  language: 'en',
                  type: TextTrackType.VTT,
                  uri: captions[index],
                },
              ]}
              selectedTextTrack={{type: 'title', value: 'English CC'}}
  1. 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:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
CHaNGeTecommented, Jul 7, 2019

@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.

1reaction
gsunsnackvcommented, Jun 26, 2019

Could someone have a look at this? It’s been a while

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found