will1971 / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

queueLoadItems failed to load if items are more than 100 or more #775

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Going to load audio(a playlist of 100 or more) with queueLoadItems 
2.It always gave an error of network timeout
3.

What is the expected output? What do you see instead?
Nothing

What version of the product are you using? On what operating system?
SUPC: SDL319241755 and IOS

Please provide any additional information below.

Original issue reported on code.google.com by reply...@gmail.com on 2 Mar 2016 at 10:31

GoogleCodeExporter commented 8 years ago
Always got this error while loading queue - -[ChromecastManager 
deviceManager:didSuspendConnectionWithReason:] - Connection Suspended: Network 
disconnected. Expecting reconnect.

Expected - it should load the whole queue

Original comment by reply...@gmail.com on 2 Mar 2016 at 10:35

GoogleCodeExporter commented 8 years ago
Could you help us in providing information to below queries

1) What is the application you are testing on?
2) Is this issue reproducible on our sample reference player 
(https://github.com/googlecast/CastReferencePlayer)?
3) Which chromecast generation and firmware are you using?
4) Which google cast SDk and Media Player version are you using?
5) Send us a snippet of error logs from sender side and feedback receiver logs 
from Chromecast app/extension with the text "for Issue 775" in description and 
share receiver logs here

Original comment by vinot...@google.com on 3 Mar 2016 at 12:52

GoogleCodeExporter commented 8 years ago
There is a 64K size limit on messages sent over the Cast protocol. The JSON for 
100 queue items is likely far larger than that.

Original comment by mlind...@google.com on 8 Mar 2016 at 9:04

GoogleCodeExporter commented 8 years ago
So what will be solution for it for long queue. If I break request into 
multiple request of 64K payload size and load the queue using loadQueue and 
queueLoadItems methods then some items either missed or order disturbed. 
Totally messed up with multiple request.

Take example - If I want to cast 100 songs on device - then i break into 50-50 
and use the method -
1.  loadQueue with 50 songs
2.  queueLoadItems with remaining 50

But the output on receiver i.e. queueCount is showing either same songs 
multiple times or order changed. Interesting things is that using loadQueue 
with 50 songs, everything worked as expected but after second request with 
queueLoadItems with remaining 50, all breaking up.

Original comment by reply...@gmail.com on 9 Mar 2016 at 5:10