M3u8 live streaming error: PlaylistStuckException
See original GitHub issueI was trying to play Live Streaming m3u8 URL but not able to play for more than 40 seconds. It’s throwing following error. Kindly look into this matter.
Platform Info: Device: OnePlus GM1901 (OnePlus7) Board: msmnile Type&Tags: user (release-keys) Android 10 SDK 29 (REL) ABIs: arm64-v8a, armeabi-v7a, armeabi,
Stacktrace:
com.google.android.exoplayer2.ExoPlaybackException: com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker$PlaylistStuckException
at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:386)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:214)
at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker$PlaylistStuckException
at com.google.android.exoplayer2.source.hls.playlist.DefaultHlsPlaylistTracker$MediaPlaylistBundle.processLoadedPlaylist(DefaultHlsPlaylistTracker.java:637)
at com.google.android.exoplayer2.source.hls.playlist.DefaultHlsPlaylistTracker$MediaPlaylistBundle.onLoadCompleted(DefaultHlsPlaylistTracker.java:518)
at com.google.android.exoplayer2.source.hls.playlist.DefaultHlsPlaylistTracker$MediaPlaylistBundle.onLoadCompleted(DefaultHlsPlaylistTracker.java:443)
at com.google.android.exoplayer2.upstream.Loader$LoadTask.handleMessage(Loader.java:450)
at android.os.Handler.dispatchMessage(Handler.java:107)
... 2 more
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
m3u8 live video isn't streaming on exoplayer - Stack Overflow
We have to use Hls media source for live streaming of .m3u8 file. package com.wordpress.myselfnikunj.mytv; import androidx.appcompat.app.
Read more >Retry m3u8 download on live HLS stream with no segments ...
Start a live HLS stream with no segments available on load. 2. Load that URL via the Media Player Library 3. Player aborts....
Read more >HLS playback in ExoPlayer - Medium
A live stream playlist is considered to be stuck if it is not updated in 3.5 times its segment target duration. If the...
Read more >Cannot Load Video Error M3U8 In Windows 10/8/7 ... - YouTube
Fix: Cannot Load Video Error M3U8 In Windows 10/8/7 and Google Chrome [Tutorial]The “Cannot Load M3U8 ″ Error can occur while trying to...
Read more >[Streaming] HTTP Live Streaming (HLS) Troubleshooting
webOS TV supports HTTP Live Streaming (HLS) which is the adaptive streaming ... 96000/output_96000.m3u8 #EXT-X-STREAM-INF:PROGRAM-ID=1 ...
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 FreeTop 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
Top GitHub Comments
https://aajtaklive-amd.akamaized.net//hls//live//2014416//aajtak//aajtaklive//aajtak_5//chunklist.m3u8
There is something wrong with this m3u8 file
The responses above are correct.
PlaylistStuckException
indicates an issue where the media playlist isn’t being updated correctly on the server-side. As @stevemayhew points out, the time ExoPlayer allows for an update to occur is pretty generous.I was able to play the stream without any issues for a couple of minutes, and was not able to reproduce the failure. Given the mixed outcomes above, it could be that the issue with this stream is intermittent. Closing as
bad media
, since the issue here is most likely with the media itself.