ExoPlayer
ExoPlayer copied to clipboard
Cast: Message exceeds maximum size
Use case description
If you initialise a large number of MediaItems using setMediaItems() on a CastPlayer it is possible to hit the CastClient maximum message size throwing an IllegalArgumentException.
CastClient: Message send failed. Message exceeds maximum size
java.lang.IllegalArgumentException: Message exceeds maximum size524288
Proposed solution
Gracefully handle setting and adding large MediaItem lists by splitting into multiple RemoteMediaClient queue requests.
Thanks, I'll see if I can play around with this.
Any update on this? I am getting this issue with a playlist of ~100 media items
Do you have any updates on this ticket? We are also experiencing this issue.
Do you have a solution to this problem? We're experiencing this issue, and it's delaying the Cast integration.