Open JonWatson opened 1 year ago
Thanks for reporting.
If there is no media info object in the media status, we can't really build a timeline. So at this place we probably should just return an empty timeline when mediaStatus.getMediaInfo()
is null. This avoids the crash you report.
I wonder whether we can make CastPlayer
throw a playback error in such a case.
We look into this an update this issue when we publish a fix for this.
Version
Media3 1.1.1
More version details
When our Cast Receiver has an internal exception/error inside a LOAD message interceptor, the
CastPlayer
on the Sender app is crashing like so:Devices that reproduce the issue
Pixel 7 Pro running Android 13
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Not tested
Reproduction steps
Have a Cast Receiver that throws an exception within its LOAD messageInterceptor
Expected result
Cast Sender (CastPlayer) should not crash the app
Actual result
CastPlayer crashes the app on a borked timeline
Media
Any
Bug Report
adb bugreport
to android-media-github@google.com after filing this issue.