Skip to content

[BUG]: Multi level M3u8 playback failed #4637

@YspCoder

Description

@YspCoder

Version

6.10.2

What platforms are you having the problem on?

Android

System Version

31

On what device are you experiencing the issue?

Real device

Architecture

New architecture with interop layer

What happened?

master.m3u8
#EXTM3U #EXT-X-VERSION:3 #EXT-X-STREAM-INF:BANDWIDTH=800000,RESOLUTION=854x480,CODECS="avc1.42e01e,mp4a.40.2" 480p/index.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=1400000,RESOLUTION=1280x720,CODECS="avc1.4d401f,mp4a.40.2" 720p/index.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=2500000,RESOLUTION=1920x1080,CODECS="avc1.640028,mp4a.40.2" 1080p/index.m3u8
index.m3u8
#EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:48 #EXT-X-MEDIA-SEQUENCE:0 #EXT-X-PLAYLIST-TYPE:VOD #EXTINF:48.000000, segment_000.ts #EXTINF:48.000000, segment_001.ts #EXTINF:24.000000, segment_002.ts #EXTINF:18.400000, segment_003.ts #EXT-X-ENDLIST

{ "error": { "errorString": "ExoPlaybackException: ERROR_CODE_PARSING_MANIFEST_MALFORMED", "errorException": "androidx.media3.exoplayer.ExoPlaybackException: Source error", "errorCode": "23002", "errorStackTrace": "androidx.media3.exoplayer.ExoPlaybackException: Source error\n\tat androidx.media3.exoplayer.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:736)\n\tat androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:706)\n\tat android.os.Handler.dispatchMessage(Handler.java:102)\n\tat android.os.Looper.loopOnce(Looper.java:230)\n\tat android.os.Looper.loop(Looper.java:319)\n\tat android.os.HandlerThread.run(HandlerThread.java:67)\nCaused by: androidx.media3.common.ParserException: Input does not start with the #EXTM3U header.{contentIsMalformed=true, dataType=4}\n\tat androidx.media3.exoplayer.hls.playlist.HlsPlaylistParser.parse(HlsPlaylistParser.java:262)\n\tat androidx.media3.exoplayer.hls.playlist.HlsPlaylistParser.parse(HlsPlaylistParser.java:69)\n\tat androidx.media3.exoplayer.upstream.ParsingLoadable.load(ParsingLoadable.java:184)\n\tat androidx.media3.exoplayer.upstream.Loader$LoadTask.run(Loader.java:421)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)\n\tat java.lang.Thread.run(Thread.java:1012)\n" }, "target": 788 } { "error": { "errorString": "ExoPlaybackException: ERROR_CODE_PARSING_MANIFEST_MALFORMED", "errorException": "androidx.media3.exoplayer.ExoPlaybackException: Source error", "errorCode": "23002", "errorStackTrace": "androidx.media3.exoplayer.ExoPlaybackException: Source error\n\tat androidx.media3.exoplayer.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:736)\n\tat androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:706)\n\tat android.os.Handler.dispatchMessage(Handler.java:102)\n\tat android.os.Looper.loopOnce(Looper.java:230)\n\tat android.os.Looper.loop(Looper.java:319)\n\tat android.os.HandlerThread.run(HandlerThread.java:67)\nCaused by: androidx.media3.common.ParserException: Input does not start with the #EXTM3U header.{contentIsMalformed=true, dataType=4}\n\tat androidx.media3.exoplayer.hls.playlist.HlsPlaylistParser.parse(HlsPlaylistParser.java:262)\n\tat androidx.media3.exoplayer.hls.playlist.HlsPlaylistParser.parse(HlsPlaylistParser.java:69)\n\tat androidx.media3.exoplayer.upstream.ParsingLoadable.load(ParsingLoadable.java:184)\n\tat androidx.media3.exoplayer.upstream.Loader$LoadTask.run(Loader.java:421)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)\n\tat java.lang.Thread.run(Thread.java:1012)\n" }, "target": 974 }

Requesting data requires verification
https://xxxxx/0f67a85123396d754452f352457f248e/master.m3u8?expires=1753981492&token=cd6ebc15c10b46051c7019b64155c817f5af5824f929e018eef17aa0a5ac5393

Reproduction Link

repository link

Reproduction

Step to reproduce this bug are:
Requesting data requires verification
https://xxxxx/0f67a85123396d754452f352457f248e/master.m3u8?expires=1753981492&token=cd6ebc15c10b46051c7019b64155c817f5af5824f929e018eef17aa0a5ac5393

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    To Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions