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: 

Youtube videos not playing in Roku


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

Using this I am getting the mp4 URLs below.

    hd1080purl: ""

    hdurl:        ""

    sdurl:       ""


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.

I am using Roku 4 - 4400X Model.
0 Kudos
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.
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.