androidx / media

Jetpack Media3 support libraries for media use cases, including ExoPlayer, an extensible media player for Android
https://developer.android.com/media/media3
Apache License 2.0
1.71k stars 409 forks source link

Sometime I am getting error from exoplayer "Invalidate date format" #1326

Closed gautamlook closed 5 months ago

gautamlook commented 6 months ago

Version

Media3 1.3.1

More version details

Media3 1.3.1

Devices that reproduce the issue

AndroidTV FireTV

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

play shared media.

Expected result

The media should be play

Actual result

Invalidate date format

Media

URL : https://30a-tv.com/feeds/zeasn/30atv.m3u8

sometime , I am getting below error from exoplayer but shared url is working other platform like ROKU , WEB and VLC Playback error androidx.media3.exoplayer.ExoPlaybackException: Source error at androidx.media3.exoplayer.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:713) at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:683) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:211) at android.os.HandlerThread.run(HandlerThread.java:65) Caused by: androidx.media3.common.ParserException: Invalid date/time format: 2024-03-28T07:35:37R{contentIsMalformed=true, dataType=1} at androidx.media3.common.util.Util.parseXsDateTime(Util.java:1700) at androidx.media3.exoplayer.hls.playlist.HlsPlaylistParser.parseMediaPlaylist(HlsPlaylistParser.java:851) at androidx.media3.exoplayer.hls.playlist.HlsPlaylistParser.parse(HlsPlaylistParser.java:281) at androidx.media3.exoplayer.hls.playlist.HlsPlaylistParser.parse(HlsPlaylistParser.java:69) at androidx.media3.exoplayer.upstream.ParsingLoadable.load(ParsingLoadable.java:184) at androidx.media3.exoplayer.upstream.Loader$LoadTask.run(Loader.java:421) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:764)

Bug Report

tonihei commented 6 months ago

Based on the error the String 2024-03-28T07:35:37R was listed as the #EXT-X-PROGRAM-DATE-TIME. The R at the end caused the parsing to fail. As far as I can tell, this extra letter isn't allowed for a valid ISO/IEC 8601:2004 date/time tag. Is this letter expected, and if so, what does it represent?

google-oss-bot commented 5 months ago

Hey @gautamlook. We need more information to resolve this issue but there hasn't been an update in 14 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot commented 5 months ago

Since there haven't been any recent updates here, I am going to close this issue.

@gautamlook if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.