Roku Legacy Products

Help with Roku products that no longer receive software updates, are no longer supported for channel updates, etc.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Level 7

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
1 Reply
Highlighted
Level 16

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

You'd be better off posting in the Developer area.
https://community.roku.com/t5/Developers/ct-p/channel-developers
  • Roku Streaming Stick +, 3810X, Ser YH0059427035, wifi LivRm - Samsung UN55ES6100
  • Roku Streaming Stick, 3600X, Ser 5S56D8240827, wifi BedRm - JVC EM37T
  • Roku 3, 4200X, Ser 4124C7087583, wifi GstRm - Sanyo DP26640
  • Roku 2 XD, 3050X (collecting dust in a drawer)
0 Kudos