ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

Cast: Message exceeds maximum size

Open scooter1556 opened this issue 5 years ago • 4 comments

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.

scooter1556 avatar Nov 25 '20 21:11 scooter1556

Thanks, I'll see if I can play around with this.

AquilesCanta avatar Nov 26 '20 10:11 AquilesCanta

Any update on this? I am getting this issue with a playlist of ~100 media items

crocsandcoffee avatar Jul 04 '22 23:07 crocsandcoffee

Do you have any updates on this ticket? We are also experiencing this issue.

ziem avatar May 17 '24 11:05 ziem

Do you have a solution to this problem? We're experiencing this issue, and it's delaying the Cast integration.

adelinolobao avatar Mar 19 '25 12:03 adelinolobao