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: 
quartern
Visitor

Update URL parameters mid-stream?

I'm using a roVideoScreen to display live video stream as follows


        video = CreateObject("roVideoScreen")
        video.setMessagePort(msgPort)
        video.SetContent(videoclip)
        video.show()

where dump of videoclip looks like

streamformat: hls
streamurls: (list of 1)...
  List(0)= http://SVR/PATH/index.m3u8?param1=xxx&param2=yyy
streamqualities: (list of 1)...
  List(0)= SD
live: true
streambitrates: (list of 1)...
  List(0)= 0
playstart: -1


Where param1 is fixed but param2 is a ticket I obtain and has a limited life, so after few minutes the stream understandably dies.  I modified the code to obtain new ticket prior to the expiration time and tried to just update with 

       videoclip=updateWithNewTicket()
       video.SetContent(videoclip)
       video.show()


and while the documentation states[/url:2c33qzvq]

 You can call roVideoScreen.SetContent() while playing video

it doesn't seem to ...



content metadata documentation[/url:2c33qzvq].  I'll experiment with the "Stream" param instead of t...

Private apps: IsraTV (replaces IsraIBA, IsraNews2, IsraI24, Isra10, Isra20)
Users - to report issues with the app (not content of streams please) send me a tweet - @quartern_roku and follow (so we can DM)
0 Kudos
2 REPLIES 2
quartern
Visitor

Re: Update URL parameters mid-stream?

Just a quick follow up, hacking-in use of "Stream" instead of "StreamUrls" did not solve the overall problem and actually made it worse as now both ".m3u8" and ".ts" were both pooling original parameters 
Private apps: IsraTV (replaces IsraIBA, IsraNews2, IsraI24, Isra10, Isra20)
Users - to report issues with the app (not content of streams please) send me a tweet - @quartern_roku and follow (so we can DM)
0 Kudos
quartern
Visitor

Re: Update URL parameters mid-stream?

bump - anyone?
Private apps: IsraTV (replaces IsraIBA, IsraNews2, IsraI24, Isra10, Isra20)
Users - to report issues with the app (not content of streams please) send me a tweet - @quartern_roku and follow (so we can DM)
0 Kudos