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

Moving Videos to Cloud with connection problems?

The video will not play on my Roku dev channel?
here is the video link which works when putted to browser..
https://objects.dreamhost.com/guitar/VIDEOS/Bibbspirit.mp4

Here I posted the URL given into the XML
and it does not work, there are other videos in this same XML doc that are working
but these videos are noted in a traditional hosting environment.
I am switching to a Cloud Based environment,… any ideas?

<title>Eric Bibb</title>
<contentType>Talk</contentType>
<contentId>1</contentId>
<media>
<streamFormat>mp4</streamFormat>
<streamQuality>SD</streamQuality>
<streamUrl>https://objects.dreamhost.com/guitar/VIDEOS/Bibbspirit.mp4</streamUrl>
</media>
<media>
<streamFormat>mp4</streamFormat>
<streamQuality>HD</streamQuality>
<streamUrl>https://objects.dreamhost.com/guitar/VIDEOS/Bibbspirit.mp4</streamUrl>
</media>
<synopsis>Dont Let it get Spirit Down.</synopsis>
<genres>Clip</genres>
</item>


Thanks
Kevin
0 Kudos
12 REPLIES 12
RobSMS
Visitor

Re: Moving Videos to Cloud with connection problems?

I'm not 100% familiar with Dreamhost's cloud file service, but I'm wondering if it's the same issue as Amazon S3. If you try and distribute files directly from S3, they won't play.

Instead, you have to deliver them with Cloudfront which seemed to fix the problem. Not sure if it's the same situation for Dreamhost, but thought it might help.
Need Apps Templates? Content Management for OTT/IPTV? Check me out @ http://rovidx.com
0 Kudos
RokuMarkn
Visitor

Re: Moving Videos to Cloud with connection problems?

Are you setting a certificate to handle the https URLs?

--Mark
0 Kudos
kelvis2000
Visitor

Re: Moving Videos to Cloud with connection problems?

"RokuMarkn" wrote:
Are you setting a certificate to handle the https URLs?

--Mark


Mark thanks so much for your response but I am basically putting this together by trial and error,
This is pretty new to me.
I uploaded the videos to my regular server at Kevsblues.com which worked fine,
then Dreamhost told me I was basically going against their rules and regulations
by having this type a setup. I was advised to set up a Cloud account which I did.
Today I did a test on one video in a "Current Blues" section which is working
from the kevsblues.com site. I changed the Bibbspirit.mp4 link
to the cloud server and it does not work.
I do not know how to manipulate the certificate, mostly I have been working with the XML files
and some bright script and this involves mostly changing images and mp4's
Thanks for Your Help!

Kevin
0 Kudos
kelvis2000
Visitor

Re: Moving Videos to Cloud with connection problems?

"RobSMS" wrote:
I'm not 100% familiar with Dreamhost's cloud file service, but I'm wondering if it's the same issue as Amazon S3. If you try and distribute files directly from S3, they won't play.

Instead, you have to deliver them with Cloudfront which seemed to fix the problem. Not sure if it's the same situation for Dreamhost, but thought it might help.


Thanks for your help RobSMS,
not too sure what to do at this point.
I sent Dreamhost a email and this was their response,____________

Hi Kevin,

I spoke with our DreamObjects dev team regardin the issue. We can verify
that the video works when viewing a browser so at the least we can say
that the video is accessible. In order to further investigate we are
going to need more detailed information. If roku has some sort of
debugging output please provide that in a response. Have you tried
encoding with a different codec such as H.264 MKV?

Please feel free to contact us if you have any additional questions.

Now I am wondering if I should switch to Amazon?
I have been using Dreamhost for about 12 years..
Thanks for your help!

Kevin
0 Kudos
RokuMarkn
Visitor

Re: Moving Videos to Cloud with connection problems?

If you're not calling SetCertificatesFile in your Brightscript code, the https URLs will definitely not work. Fix that before you do anything else. Normally you would just call

player.SetCertificatesFile("common:/certs/ca-bundle.crt")

where player is your roVideoScreen or roVideoPlayer.

--Mark
0 Kudos
kelvis2000
Visitor

Re: Moving Videos to Cloud with connection problems?

"RokuMarkn" wrote:
If you're not calling SetCertificatesFile in your Brightscript code, the https URLs will definitely not work. Fix that before you do anything else. Normally you would just call

player.SetCertificatesFile("common:/certs/ca-bundle.crt")

where player is your roVideoScreen or roVideoPlayer.

--Mark


I set up CDN and changed the
link to
http://guitar.objects.cdn.dream.io/VIDE ... spirit.mp4

and it works which is great. Thanks for your help
Mark should I still set Certificate?
Also which Brightscript Doc would set I am looking for
bundle.crt which I am not able to find.
Seeing as it i working should I just leave well enough alone?
Thanks again!
Kevin
0 Kudos
kelvis2000
Visitor

Re: Moving Videos to Cloud with connection problems?

"RobSMS" wrote:
I'm not 100% familiar with Dreamhost's cloud file service, but I'm wondering if it's the same issue as Amazon S3. If you try and distribute files directly from S3, they won't play.

Instead, you have to deliver them with Cloudfront which seemed to fix the problem. Not sure if it's the same situation for Dreamhost, but thought it might help.


I set up CDN which is the Dreamhost equivalent to Cloudfront and changed the
link to
http://guitar.objects.cdn.dream.io/VIDE ... spirit.mp4

and it works which is great.
Thanks!
Kevin
0 Kudos
RokuMarkn
Visitor

Re: Moving Videos to Cloud with connection problems?

Now you're using an http link, not https, so you don't need to set a certificate file. If you ever use https again you will need it.

--Mark
0 Kudos
belltown
Roku Guru

Re: Moving Videos to Cloud with connection problems?

"kelvis2000" wrote:
Also which Brightscript Doc would set I am looking for
bundle.crt which I am not able to find.

It's hard to find the official documentation for this. In the Component Reference documentation for roVideoScreen, for example, it mentions that roVideoScreen supports the ifHttpAgent interface, which implements the SetCertificatesFile method, which states that, "Instances of roUrlTransfer and ifHttpAgent components should call this function before performing https requests", and "The appropriate certificates file should be placed at the location specified in the SetCertificatesFile() function call". To find any mention of the certificates file name you'd have to look in the Component Reference File System documentation; under "Pathnames" it states: "common – a common read-only filesystem that all plugins have access to. Currently it only contains a CA certificate bundle that contains CA certs trusted by FireFox (common:/certs/ca-bundle.crt)".
0 Kudos