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.

HLS stream does not play until the end on IOS devices

See original GitHub issue

Current Behavior

HLS stream does not play until the end on IOS devices.

image

Expected Behavior

HLS stream should play all chunks until the end. Expected react-player to reach the played property with a value of 1.

Steps to Reproduce

Given you are using an IOS device:

  1. Go to the demo page: https://cookpete.com/react-player/
  2. Load the HLS (m3u8) sample file
  3. Hit the play button and let it play until react-player stops playing

Environment

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
cookpetecommented, May 19, 2020

This looks like a problem with the browsers in iOS, not ReactPlayer.

I can visit https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8 directly in iOS Chrome and I get the same problem.

This person has the same problem in a native iOS app: https://stackoverflow.com/questions/20077118/http-streaming-video-playbackdidfinish-not-called

Could you use onProgress and check playedSeconds against the duration to call a function when the stream has almost finished?

0reactions
cookpetecommented, May 23, 2020

I was just wondering if you wanted to include such behavior in react-player.

I wouldn’t want to include a fix like that in ReactPlayer. It feels very hacky, and we’d be cutting off the last second or so from any HLS stream, even if the device doesn’t have the problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HLS stream does not play until the end on IOS devices #871
Current Behavior HLS stream does not play until the end on IOS devices. Expected Behavior HLS stream should play all chunks until the...
Read more >
Playback Not Working on iOS 14 Beta Version
Hello, We are testing HLS playback on the native player (safari) using the iOS 14 Beta release and the playback fails 100% of...
Read more >
Regarding hls stream can't work on iphone
I use ffmpeg to deliver my av streams( ...
Read more >
Troubleshoot Apple HLS playback
Troubleshooting guide to streaming from Wowza Streaming Engine to iOS and other devices using Apple HLS.
Read more >
Azure Media Service HLS stream plays on laptop/desktop ...
It is working on a desktop/laptop browser, but not on iOS or Android in Chrome. The player loads, but the video itself does...
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