Skip to content

How is the repeat mode implemented? #305

Answered by Tapanila
lhughey asked this question in Q&A
Discussion options

You must be logged in to vote

Seems like I hadn't implemented it.

Looking at the documentation it looks like setting repeat mode on load is only implemented at queue load message:
https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.QueueLoadRequestData

Because this call is used for loading media:
https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.LoadRequestData

I added the implementation for this in 1.1.18 and created a test case for it:

        var media = new Media
        {
            ContentUrl = "https://incompetech.com/music/royalty-free/mp3-royaltyfree/Loping%20Sting.mp3"
        };

        var queueItem = new QueueItem
        {
        …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lhughey
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants