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

video offset

How do we start the video at a stated offset time in the video file? We tried setting the BookmarkPosition, PlayStart and StreamStartTimeOffset to 1000. None of them worked. Is it in seconds as the documentation states?

--Stephen
0 Kudos
3 REPLIES 3
EngoTom
Visitor

Re: video offset

We do it as follows

videoClip.PlayStart = position

screen = CreateObject("roVideoScreen")
screen.SetMessagePort(port)
screen.SetPositionNotificationPeriod(5)
screen.SetContent(videoClip)
0 Kudos
renojim
Community Streaming Expert

Re: video offset

I do what EngoTom does, and yes it's in seconds.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
RokuKevin
Visitor

Re: video offset

EngoTom's example is correct and PlayStart is in seconds.

--Kevin
0 Kudos