dew
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2012
08:46 AM
Video player question "Play or Resume Play"
Hi I have set up all of my xmls files I am just about to start adding content I have 90% of my streamUrl's empty.
but when I side load the channel for test on most videos there is the resume play or play button but on some of them there is no resume play just a play . My question is can someone explain where is the info stored? How does it know wheater you started watching the movie or not? and how do you clear it .I have most of the fileds empty but yet there is a resume play? I can not see how the info can be taken from the xml I side loaded a channel and I sent the file to my client so he could see the progress as I added content but he sees the same thing on his Roku box. any help would be much appreaciated.
Cheers
Dave
but when I side load the channel for test on most videos there is the resume play or play button but on some of them there is no resume play just a play . My question is can someone explain where is the info stored? How does it know wheater you started watching the movie or not? and how do you clear it .I have most of the fileds empty but yet there is a resume play? I can not see how the info can be taken from the xml I side loaded a channel and I sent the file to my client so he could see the progress as I added content but he sees the same thing on his Roku box. any help would be much appreaciated.
Cheers
Dave
4 REPLIES 4


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2012
09:14 AM
Re: Video player question "Play or Resume Play"
That data is stored in the registry based on the contentID of the item. The logic for showing the buttons is in the refreshShowDetail() function.
dew
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2012
11:33 AM
Re: Video player question "Play or Resume Play"
So every content should have its own unique content Id
This would keep every thing just showing play unless they started playing the file and it was stored in the registry based. That makes sense ok is there any rules on what a content ID can be? or can not be?
Thanks again for your help
DEW
This would keep every thing just showing play unless they started playing the file and it was stored in the registry based. That makes sense ok is there any rules on what a content ID can be? or can not be?
Thanks again for your help
DEW

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2012
12:00 PM
Re: Video player question "Play or Resume Play"
Ideally it is a very short unique string as there is a limited amount of space in the registry. If you were to use, say, the path and filename as the uniqueID, you might run out of space in the 16k depending on how many videos you have in your channel, and if you share your developer key with more than one channel using the same registry.
- Joel
- Joel
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2012
04:00 PM
Re: Video player question "Play or Resume Play"
When we have a channel with resume options, I have code that tracks the position for oldest/newest which sorts and scrolls off old data. Keeping 10 bookmarks is fine for our purposes, and each key is saved with the channel name so the channels are independent. I suspect after 20 or so channels on the same key we'd probably begin to be concerned about space requirements, but for now it's fine as nearly 3/4th of our channels don't use bookmarks or resume. If you need a lot more space, it'd be best to keep the bookmarks on the server in a database for your individual users.