As you can see in the code below, I've come across a great Google Cast SDK feature, how to create a play queue?
Right now I have managed to transmit video and information to chrome cast (at the moment), I have ready the .css splash that they request for the start of the application, in fact it is almost ready! ... in Google Devlopers reading the documentation I came across the section "Queueing" which shows the following code:
MediaQueueItem queueItem = new MediaQueueItem.Builder(mediaInfo)
.setAutoplay(true)
.setPreloadTime(20)
.build();
The million dollar questions are...
- Where should I put that code?
- How can I add lists to Google Cast?
- How do I update the lists, once finished?