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.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: HLS Troubleshooting

Hello everyone!!
I'm trying to implement Live DVR with Seek option.

 - While start playing I check the position of the player and always is 0 (absolute). This mean I could not move the pos in past using seek method.
Please help me to find any solution  if this is possible ?

Thank You
0 Kudos
Streaming Star

Re: HLS Troubleshooting

Trying to play the live stream (the live stream is a loop so it's always on which make it easy to test) referenced below always fails. The video player shows the loading bar and gets stuck there forever (tested with a Roku 4).

Sadly there is no way to observe network traffic out of the Roku video player so I can't even tell if the video player gets stuck loading the playlist, the chunk list or the first chunk

Easy to reproduce simply with this MainScene.xml:

<?xml version="1.0" encoding="utf-8" ?> 
<!--********** Copyright 2016 Roku Corp.  All Rights Reserved. **********-->

<component name="MainScene" extends="Scene" >

<script type="text/brightscript">
function init() ="myVideo") = 1
end function

function playVideo() as void
  subtitle_config = {
      TrackName: "pkg:/captions.ttml"
    vidContent = createObject("RoSGNode", "ContentNode")
    'vidContent.url = ""
    'vidContent.url = ""
    vidContent.url = ""
    'vidContent.subtitleconfig = subtitle_config
    vidContent.title = "Closed Captions in Scene Graph"
    vidContent.streamformat = "hls" = vidContent = "play"
end function

    <Video id="myVideo" width="1280" height="720" />

0 Kudos

Re: HLS Troubleshooting

Does anyone know if there is a way to get the Roku to request m3u8 files using (byte) range requests?

It currently is requesting the *entire* m3u8 every 5-10s for live HLS streams, and for a long video (with a large m3u8 as it approaches the end) , that can really take up a lot of unnecessary bandwidth (100-200kbps).

Our media server is indicating it supports (byte) range requests (using the HTTP response header of "Accept-Ranges: bytes"), but the Roku refuses to request only the incremental range of bytes with each new request.

Any ideas how to convince the Roku to request only what it actually needs? Sample HTTP request and response headers of how it is currently behaving are below:

GET /testvideo/2000000/main_2000000.m3u8 HTTP/1.1
Connection: close
Host: com
User-Agent: Roku/DVP-4.2 (024.02F01006B)
Accept-Encoding: deflate, gzip

HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Type: application/x-mpegURL
Accept-Ranges: bytes
Content-Length: 67212
Date: Wed, 04 Jan 2012 04:39:32 GMT

Although this post is old, does anyone have an idea how to accomplish this with http live streaming?
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.