Developers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
anilk1797
Visitor

Why fastforward/rewind button first time working too slow

I am working on video player using video node. My issue is when i press first time fastforward/rewind button during video playing/buffering then button is not working. After pressing 4-6 times fast forward or rewind button is working after that it is working properly but for first time i have to press 4-6 time button then working. My code is...

function setVideo()
m.InnerVideo = m.top.createChild("InnerVideo")
inner = createObject("RoSGNode", "ContentNode")
inner.url = "url..."
inner.streamformat = "hls"

m.innerVideo.visible = true
m.innerVideo.content = inner
m.innerVideo.control = "play"
end function

function onKeyEvent(key as String, press as Boolean) as Boolean
handled = false

if press
if key = "fastforward"
print "fastforward" // Working after 4-6 times pressing for first job

handled = true
end if
end if

return handled
end function

Please suggest me what should be issue? Is issue related to video file format or encoding/decoding?

Thanks
Tags (1)
0 Kudos
1 REPLY 1
anilk1797
Visitor

Re: Why fastforward/rewind button first time working too slo

Thank you
After adding code
inner.SwitchingStrategy = "full-adaptation"


It's working properly
Tags (1)
0 Kudos
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!