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

Limit Time on StreamUrl

Is it possible to limit the amount of time an mp4 plays and then send it to like a commercial or standard video ?
0 Kudos
1 REPLY 1
RokuRobB
Streaming Star

Re: Limit Time on StreamUrl

You could do something simple like set up a time using roTimespan:

http://sdkdocs.roku.com/display/RokuSDKv48/roTimespan

and after the desired interval, SetContent on your roVideoScreen to the ad or other new content that you want to play.
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.