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

roVideoScreen msg.isPlaybackPosition() not working anymore

msg.isPlaybackPosition() does not seem to be a valid event name for roVideoScreen anymore.

My index value is being populated as it was before but the following call returns an empty msg name as seen below.

print "roVideoScreen | msg = "; msg.getMessage() " | index = "; msg.GetIndex()

roVideoScreen | msg = | index = 75
roVideoScreen | msg = | index = 80

My code saves this value to the registry for Resume functionality

else if msg.isPlaybackPosition()
reg.Write("position", strI(msg.GetIndex()))
reg.Flush()
0 Kudos
6 REPLIES 6
renojim
Community Streaming Expert

Re: roVideoScreen msg.isPlaybackPosition() not working any

Are you saying the code after "else if msg.isPlaybackPosition()" never gets executed, or just that the msg.getMessage() returns an empty string for the playback position event? I haven't seen a problem with the isPlaybackPosition() function, but I don't bother printing out the getMessage() string.

-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
EngoTom
Visitor

Re: roVideoScreen msg.isPlaybackPosition() not working any

msg.getMessage() returns an empty string therefore else if msg.isPlaybackPosition() never gets called.

The index value does however contain the user position int.
0 Kudos
renojim
Community Streaming Expert

Re: roVideoScreen msg.isPlaybackPosition() not working any

Well I added your print after my "if type(msg) = "roVideoScreenEvent"" and sure enough msg.getMessage() returns an empty string, but the msg.isPlaybackPostion() still works properly. Maybe the problem is in your reg. functions? Did you try to add a print after the "if msg.isPlaybackPostion()" statement?

-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: roVideoScreen msg.isPlaybackPosition() not working any

isPlaybackPosition() continues to work properly in the current release. We have many channels that use this mechanism to successfully implement "resume" functionality.

--Kevin
0 Kudos
jbrave
Channel Surfer

Re: roVideoScreen msg.isPlaybackPosition() not working any

Hi,

I'm using code based on the simplevideoplayer example and I"m not getting any isplaybackposition events. The only difference is I'm feeding in mp4's from Ooyala in an array of various framerates.

Anyone else seen this?

- Joel
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos
RokuChris
Roku Employee
Roku Employee

Re: roVideoScreen msg.isPlaybackPosition() not working any

"jbrave" wrote:
I'm using code based on the simplevideoplayer example and I"m not getting any isplaybackposition events. The only difference is I'm feeding in mp4's from Ooyala in an array of various framerates.


Are you calling SetPositionNotificationPeriod() on your video screen when you set it up? I notice the simplevideoplayer sample does not have that call, which would cause the isPlaybackPosition() event to never be raised.
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.