westlinkin
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2014
03:03 AM
streaming video to Roku problem
I want to stream an online video to Roku's play-on-Roku, using this url:
"http://" + host + String.format("15985?t=v&u=%s&k=(null)&h=%s&videoName=%s&videoFormat=%s",
encode(url),
encode(host),
encode(title),
encode(mediaFormat))
in which host is Roku's ip address + ":8060", like this: 192.168.1.137:8060,
url is the online video url, like "http://voyagerapps.com/ytb001.mp4" or "https://voyagerapps.com/ytb001.mp4"
title is the String that will show on the screen when play-on-Roku is retrieving video,
mediaFormat is the mediaFormat of the online video.
Here is my question, when the url starts with "http:", it works fine. However, when loading "https:" url, it stops working. play-on-Roku just "crashes" and return to HOME screen.
Is there a way to fix it?
And one more question: when play-on-Roku is playing an online video, how to retrieve playing information like "video duration", "playing status(pause or play)", "video playing position(the current progress/postion of the video which is currently playing)"?
Thanks in advance.
"http://" + host + String.format("15985?t=v&u=%s&k=(null)&h=%s&videoName=%s&videoFormat=%s",
encode(url),
encode(host),
encode(title),
encode(mediaFormat))
in which host is Roku's ip address + ":8060", like this: 192.168.1.137:8060,
url is the online video url, like "http://voyagerapps.com/ytb001.mp4" or "https://voyagerapps.com/ytb001.mp4"
title is the String that will show on the screen when play-on-Roku is retrieving video,
mediaFormat is the mediaFormat of the online video.
Here is my question, when the url starts with "http:", it works fine. However, when loading "https:" url, it stops working. play-on-Roku just "crashes" and return to HOME screen.
Is there a way to fix it?
And one more question: when play-on-Roku is playing an online video, how to retrieve playing information like "video duration", "playing status(pause or play)", "video playing position(the current progress/postion of the video which is currently playing)"?
Thanks in advance.
8 REPLIES 8
TreyG
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2014
10:21 PM
Re: streaming video to Roku problem
I too seem to have an issue where https video streams are not working.
The following video plays fine...
http://wowzaec2demo.streamlock.net/vod/ ... ylist.m3u8
But when made https, the video will no longer play.
https://wowzaec2demo.streamlock.net/vod ... ylist.m3u8
Both videos play without issue in VLC Media Player.
The following video plays fine...
http://wowzaec2demo.streamlock.net/vod/ ... ylist.m3u8
But when made https, the video will no longer play.
https://wowzaec2demo.streamlock.net/vod ... ylist.m3u8
Both videos play without issue in VLC Media Player.
greubel
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2014
07:16 AM
Re: streaming video to Roku problem
Tried the URLs with my channel's Remote Push and the https: failed.
Added this change to my video routine.
And now it works.
So possibly Roku needs to add the same check on their PUSH !
Added this change to my video routine.
if instr( 0, Lcase( url ), "https:" ) > 0
vid.SetCertificatesFile("common:/certs/ca-bundle.crt")
vid.InitClientCertificates()
end if
And now it works.
So possibly Roku needs to add the same check on their PUSH !
TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2014
11:13 AM
Re: streaming video to Roku problem
"greubel" wrote:
Tried the URLs with my channel's Remote Push and the https: failed.
Added this change to my video routine.if instr( 0, Lcase( url ), "https:" ) > 0
vid.SetCertificatesFile("common:/certs/ca-bundle.crt")
vid.InitClientCertificates()
end if
And now it works.
So possibly Roku needs to add the same check on their PUSH !
Roku has always required you to set the certificates file for HTTPS requests, with all of their components.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
greubel
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2014
11:43 AM
Re: streaming video to Roku problem
But what happens on a PUSH request for Play-On-Roku ?
They must not check ! I wasn't !
They must not check ! I wasn't !
TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2014
12:15 PM
Re: streaming video to Roku problem
"greubel" wrote:
But what happens on a PUSH request for Play-On-Roku ?
They must not check ! I wasn't !
Oh, sorry. I see what you're saying. I missed that the OP was asking about Play On Roku specifically.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2014
11:37 AM
Re: streaming video to Roku problem
"TheEndless" wrote:
Roku has always required you to set the certificates file for HTTPS requests, with all of their components.
How about this "radical" idea - make all ifHttpAgent components have a pre-set, default certificates path? Regardless if it is https even.
"Oh the horror" - but hear me out, that would be backwards compatible, since all code that already does SetCertificatesFile() will continue to work. And the influx of cries by developers that https does not work will stop. And this Play-on-Roku thing will also "magically" work with https.
TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2014
12:41 PM
Re: streaming video to Roku problem
"EnTerr" wrote:"TheEndless" wrote:
Roku has always required you to set the certificates file for HTTPS requests, with all of their components.
How about this "radical" idea - make all ifHttpAgent components have a pre-set, default certificates path? Regardless if it is https even.
"Oh the horror" - but hear me out, that would be backwards compatible, since all code that already does SetCertificatesFile() will continue to work. And the influx of cries by developers that https does not work will stop. And this Play-on-Roku thing will also "magically" work with https.
Doesn't seem that "radical".. in fact, I would have expected it. Not sure why Roku chose not to include the certs, by default.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2014
04:43 PM
Re: streaming video to Roku problem
^ What he said.
-JT
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.