lmsilva
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2012
02:13 PM
How to detect video length or catch event for video finish?
Dear all,
I'm having some trouble figuring out how to get the length of a video being played by a roVideoPlayer *or* catching an event that clearly identifies the video has finished.
I was looking in the development guide (http://sdkdocs.roku.com/display/RokuSDKv43/Event+Loops) and I can see that events can be used to detect that "video that has finished playing back" but I cannot find any events for it in the docs?
I also found this answer in the forum stating "there's an event (type 7) that is sent at the start of play and contains the duration of the video. It doesn't seem to be documented, so I'm not sure if it's plumbed all the way up to Brightscript." but I have no idea how to access it / use it?
viewtopic.php?f=34&t=48575&p=331214&hilit=video+length#p331214
Any thoughts on how I can do it?
Thank you,
Luis
I'm having some trouble figuring out how to get the length of a video being played by a roVideoPlayer *or* catching an event that clearly identifies the video has finished.
I was looking in the development guide (http://sdkdocs.roku.com/display/RokuSDKv43/Event+Loops) and I can see that events can be used to detect that "video that has finished playing back" but I cannot find any events for it in the docs?
I also found this answer in the forum stating "there's an event (type 7) that is sent at the start of play and contains the duration of the video. It doesn't seem to be documented, so I'm not sure if it's plumbed all the way up to Brightscript." but I have no idea how to access it / use it?
viewtopic.php?f=34&t=48575&p=331214&hilit=video+length#p331214
Any thoughts on how I can do it?
Thank you,
Luis
1 REPLY 1
lmsilva
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2012
02:27 PM
Re: How to detect video length or catch event for video fini
Oh k, I actually found out how to do it! 🐵
The event isFullResult() [http://sdkdocs.roku.com/display/RokuSDKv43/roVideoPlayerEvent] detects when the video ends!
The event isFullResult() [http://sdkdocs.roku.com/display/RokuSDKv43/roVideoPlayerEvent] detects when the video ends!