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: 
ssimeonov
Visitor

Detecting end of video in FF mode

We cannot find a way to detect when video reaches the end if the user presses FF button.
The video marked reaches the end of the progress bar and we start receaivnt invalid messages

The Video is in HLS format, 10 second segments, mp4.
Video Screen used - roVideoScreen.


screen = CreateObject("roVideoScreen")
port = CreateObject("roMessagePort")


while true
msg = wait(1500, screen.GetMessagePort())

if type(msg) = "roVideoScreenEvent" then
if msg.isStreamStarted()
print "IsStreamStarted: GetIndex:"; msg.GetIndex(); " Bitrate:"; msg.GetInfo().StreamBitrate
else if msg.isPaused() then
print "Stream paused"
else if msg.isResumed() then
print "Stream resumed"
else if msg.isPlaybackPosition() then
print "is Play Possition"
end if
else if msg = invalid then
print "Message is invalid"
'FIRED AFTER END OF VIDEO IN FF MODE !!!!
end if
end while
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.