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: 

Youtube videos not playing in Roku

Hi,

I am fetching youtube videos using youtube data API and getting the mp4 URL using some regular expression code.

http://www.youtube.com/get_video_info?hl=en&el=detailpage&video_id=wuCK-oiE3rM

Using this I am getting the mp4 URLs below.

{
    hd1080purl: ""

    hdurl:        "http://r1---sn-5jucgv5qc5oq-h55e.googlevideo.com/videoplayback?ipbits=0&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Cratebypass%2Csource%2Cupn%2Cexpire&ratebypass=yes&initcwndbps=3512500&itag=22&mime=video%2Fmp4&upn=eiQazx1xCGc&expire=1485811575&ei=F1uPWNiJJZryoAPohZfwBQ&pl=22&ms=au&mv=m&source=youtube&pcm2cms=yes&mt=1485789924&lmt=1471924218124324&key=yt6&ip=183.82.33.163&dur=238.050&id=o-ANIMTPx1gMqyr820kPqQLvF0fq_Whx5IGcNLi3l6CBrY&mn=sn-5jucgv5qc5oq-h55e&mm=31"

    sdurl:       "http://r1---sn-5jucgv5qc5oq-h55e.googlevideo.com/videoplayback?ipbits=0&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Cratebypass%2Csource%2Cupn%2Cexpire&ratebypass=yes&initcwndbps=3512500&itag=18&mime=video%2Fmp4&upn=eiQazx1xCGc&gir=yes&expire=1485811575&clen=6048512&ei=F1uPWNiJJZryoAPohZfwBQ&pl=22&ms=au&mv=m&source=youtube&pcm2cms=yes&mt=1485789924&lmt=1458208080124663&key=yt6&ip=183.82.33.163&dur=238.050&id=o-ANIMTPx1gMqyr820kPqQLvF0fq_Whx5IGcNLi3l6CBrY&mn=sn-5jucgv5qc5oq-h55e&mm=31"

}



This video is not playing in both browsers and in the roku. The videos playing well both on youtube and there is no region/country wise issue. I am getting the following error in Roku.


play failed: There was an error in the HTTP response.  This could mean that malformed HTTP headers or an HTTP error code was returned.



For some of the youtube channels, It always giving this error and I can't find out the problem. Can anyone know the solutions for this kind of problem please help me.


Thanks,
P.Dineshkumar
I am using Roku 4 - 4400X Model.
0 Kudos
1 REPLY 1
joetesta
Roku Guru

Re: Youtube videos not playing in Roku

pretty sure youtube does not allow its videos to be used in this way and the errors you see are a result of whatever they have in place to enforce this policy.  AFAIK if you want to watch youtube on Roku you need to use the Youtube app.
aspiring
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.