androidrokubrightscript

Seek field of video node is not working properly


I am working on video player using video node of Scene Graph Component. My issue is when i set seek field like m.video.seek = 20 it's start playing from 15 seconds or 18 seconds but not from exact position 20 seconds. My code is...

inner = createObject("RoSGNode", "ContentNode")
inner.url = "http://-------------.m3u8"  
inner.streamformat = "hls" 
inner.SwitchingStrategy = "full-adaptation"

Video file format is m3u8 and using ui_resolutions=fhd in manifest file of roku app.

Is this issue related to stream format or others? Please help me.


Solution

  • This is correct behavior you have "hls" streamformat, this is format specific, hls video stream is divided into chunks, so when you set seek, video will start from chunk start not from the middle of this chunk.