"belltown" wrote:
In appVideoScreen.brs, change the following code from:
elseif msg.isRequestFailed()
print "Video request failure: "; msg.GetIndex(); " " msg.GetData()
elseif msg.isStatusMessage()
print "Video status: "; msg.GetIndex(); " " msg.GetData()
to:
elseif msg.isRequestFailed()
print "Video request failure: "; msg.GetIndex(); " " msg.GetData()
RegWrite(episode.contentId, "0")
elseif msg.isFullResult()
print "Playback completed"
RegWrite(episode.contentId, "0")
elseif msg.isStatusMessage()
print "Video status: "; msg.GetIndex(); " " msg.GetData()
FANTASTIC!
Thank you so much for saving me from this headache any further.
I made the change just a few minutes after your post and it works beautifully. I have already submitted the new build for an update to the version in the channel store.
"destruk" wrote:
You could have it delete the registry key when the video is finished, or what I'd do is subtract a minute or so from the end and then delete it when it reached or exceeded that point as most people I know don't watch the entire ending credits.
Don't forget to update the springboard screen afterward to reflect the current status.
Great point. However, we currently don't have standard credits in our programs as you would see in a feature movie or broadcast tv program. Mostly our credits would be included picture-in-picture with the end of the program or the credits would only roll for less than 5 seconds. But, I think this is a great idea and will look at implementing it. I might be picking your brain a bit more on this topic if that is ok.
Mods:Seems like this thread should be a sticky if this feature is 'broken' in the example code, yet when a channel is submitted for public approval they are rejected when it doesn't work. Just think anyone starting with the 'videoplayer' example should know this.
Thanks again to all