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.

M3u8 live streaming error: PlaylistStuckException

See original GitHub issue

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

URL: https://aajtaklive-amd.akamaized.net//hls//live//2014416//aajtak//aajtaklive//aajtak_5//chunklist.m3u8

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:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
xiaoxiaoliu6commented, Dec 10, 2020
0reactions
ojw28commented, Dec 11, 2020

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.

Read more comments on GitHub >

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

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