-
I'm looking at repeating the playback of a single file, but can't figure out how to implement it. I took a look at the documentation at https://developers.google.com/cast/docs/reference/web_sender/chrome.cast.media#.RepeatMode and see that it is a property of the media, so I tried passing it as a customdata property with no luck, like this
I also tried to pass it by setting the media status, with no luck, like this I also picked up the string "REPEAT_ALL" from somewhere (not sure). Can you tell me what I'm doing wrong? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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: Because this call is used for loading media: I added the implementation for this in 1.1.18 and created a test case for it:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response and update! This worked. |
Beta Was this translation helpful? Give feedback.
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: