Filling in multiple media items

Is it possible to record multiple tracks to be played in the chrome signal app one after the other? I just want to play a simple playlist. So I register 5 tracks, my iOS client goes into the background when playing the second track, and I want my chrome receiver app to play the remaining 3 tracks. Is it possible?

He is actually commenting loadMedia:autoplay:

, which makes me think it should be possible:

/**
 * Loads, **enqueues (at the end of the queue)**, and optionally starts playback of a new media
 * item.
 *
 * @param mediaInfo An object describing the media item to load.
 * @param autoplay Whether playback should start immediately.
 * @return The request ID, or kGCKInvalidRequestID if the message could not be sent.
 */
- (NSInteger)loadMedia:(GCKMediaInformation *)mediaInfo autoplay:(BOOL)autoplay;

      

I tried to call this method on two objects mediaInfo

, setting autoplay only for the first one, but it still only plays one track.

But other than the comments, loadMedia:autoplay:

I haven't found any indication of this one queue

, how can I get it, how can I delete objects, etc. So is this just the wrong comment or does this queue exist somewhere?

PS This is not the background playback support I am looking for, thanks to this question I know this is not possible, I just want to highlight multiple elements.

+2


source to share


1 answer


The comment for this method is incorrect and we already have an internal error; it will be fixed in the next release. Back to your question, the current Styled or Default listener has no queuing capabilities; you need to deploy your own receiver; we have a sample GitHub project that shows how this can be done. We have plans to add such features in future releases, but no date has been announced yet.



Update. Our two receivers now support queuing along with the Cast SDK. See our documentation for more information.

+2


source







All Articles