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: 
kazim
Channel Surfer

roVideoPlayerEvent method isPlaybackPosition() is no longer working?

I have a live roku channel still using Legacy Framework from 2016 and it's player is using roVideoPlayerEvent's method isPlaybackPosition() to play HLS live stream like following:

while true
	msg = wait(0, port)
	if type(msg) = "roVideoScreenEvent" then
		if msg.isScreenClosed()
			print "Screen closed"
			exit while 
		else if (msg.isPlaybackPosition()) then
			nowpos = msg.GetIndex()
			RegWrite(episode.ContentId, nowpos.toStr())
		else
			 print "Unexpected event type: "; msg.GetType()
		end if
	else
		print "Unexpected message class: "; type(msg)
	end if
end while


It used to be working till I last checked on Friday (29th May) but on Monday (1st June) it stopped working. When I debugged msg.isPlaybackPosition() is returning false for HLS stream which it used to be playing for years. It falls in else case and prints Unexpected event type: 11

Since we can not update legacy app and will have to move to RSG which I am currently working on but it can take time, so is there any way this problem could be solved till new app is published? Thanks in advance.

Reference link for isPlaybackPosition(): https://developer.roku.com/en-gb/docs/references/brightscript/events/rovideoplayerevent.md#isplaybac... 

 

0 Kudos
2 REPLIES 2
chaklasiyanikun
Roku Guru

Re: roVideoPlayerEvent method isPlaybackPosition() is no longer working?

I also had this problem for the last 3 days. But, now it is gone. I think It was in maintenance. Please check now. It's working fine.

0 Kudos
kazim
Channel Surfer

Re: roVideoPlayerEvent method isPlaybackPosition() is no longer working?

I'm still facing the issue. It's not fixed at my end. Is there any official statement on it by Roku?

I'm using Roku 3 with most recent Software Version (9.3.0) and Build (4170). 

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.