Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
lmsilva
Visitor

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
0 Kudos
1 REPLY 1
lmsilva
Visitor

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!
0 Kudos