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

roVideoScreen.Seek

I have a client who wants a custom 2D interface, but a custom video player is not in the specs. So, I have incorporated the roVideoScreen into the application. Was surprised to see that the transition was unremarkable, but this could be that they use a dark background or maybe the compositor has something to do with it. The 2D springboard provides a resume play button that I had anticipated using roVideoScreen.Seek, keeping tract of expired seconds via SetPositionNotificationPeriod( 1 ). This works good and gives me the correct number of seconds to convert to milliseconds for seek. The only problem is that I cannot call Seek() before or after Show() and have it do anything other than start from the beginning of the video. I have had to place the seek call with a flag in isStreamStarted() and then it will work ok, although occasionally the progress bar will reset. Any suggestions ? I did notice other posts with similar problems with the audioplayer. I guess I'm spoiled - roVideoPlayer is my puppy. Does things right and gives me a duration time. . That's another thing -any way to get a duration time from the player itself ?? This took more time than a custom player that I could have just dropped in from my framework
My Channels: 2D API Framework Presentation: https://owner.roku.com/add/2M9LCVC
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )
0 Kudos
2 REPLIES 2
TheEndless
Channel Surfer

Re: roVideoScreen.Seek

For resuming video, you should use the PlayStart content metadata property. No need to call Seek(), unless you want to seek after video playback has already begun for some reason.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
NewManLiving
Visitor

Re: roVideoScreen.Seek

Thanks - I knew you would have the answer. Now I remember reading it. Time for a meta-data review. Thanks. Any ideas on the duration time other than the xml field
My Channels: 2D API Framework Presentation: https://owner.roku.com/add/2M9LCVC
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )
0 Kudos