Is there a way to play a yotube video inside a unity web app?

Hi.

That’s the question:

Is there a way to play a yotube video inside a unity web app?

I’m interested in this because i have a standalon/ios/android app that has a video, but this video is big (around 40mb), and i have a youtube version of this video.

Is it possible to stream a youtube video from the web player?

Cheers and thanks for the help.

No thats not possible, all you can do is offer them a link to jump to unity over push an iframe over the webplayer to do so but you won’t get it into unity.

The only movie format you can playback in unity pro is ogg theora

You can download the video and then put that onto a plane or whatever (seen it somewhere as a tut)

Thats easy yeah. Juts use WWW and yield for the www object and once the yield is through assign www.movieTexture to the guitexture.texture and use www.movieTexture.audioClip and assign that to an AudioSource and then play the movietexture and audiosource :slight_smile:

Thanks for the answers.

The downloaded video will be playable from unity then?

I mean, the downloaded video from youtube won’t be encoded with unity, so will it support the video as a texture?

Cheers.

No it will not work.
The movie must always be ogg theora or it will not go into unity at all at runtime

Hmm maybe doing an on the spot conversion.
(either in the APP or on a Dedicated Server) (But I am not sure if the performance will be good enough)

For an idea (not tutorial) check this website out: http://www.hidemyass.com/
They basicly stream the video to one of there US based servers, at the same time they send the stream to your browser.

They don’t do conversion do!
Works pretty good to bypass “this video is not available in your country”