I’m kinda new to Unity especially on this type of function. I been trying to stream an online video on android. I tried to use the Unity sample and change it in order to work on android platform. But I kinda stuck out here, not knowing how to solve this. Somehow I just don’t know how to modify this. Could anyone enlighten me a little?
#pragma strict
var url = "http://www.unity3d.com/webplayers/Movie/sample.ogg";
function Start () {
var www = new WWW(url);
yield;
Handheld.PlayFullScreenMovie(url,Color.clear,
FullScreenMovieControlMode.Full,
FullScreenMovieScalingMode.AspectFit);
}
function Update () {
}
It managed to run on android devices but the video is not playing.
First: you don’t need that WWW stuff, just call Handheld.PlayFullScreenMovie with your url.
Second: are you sure you’re using correct format. If it plays on iOS it doesn’t mean that Android supports it. I can not see .ogg on Video formats in this page: Supported media formats | Android Developers
Hey Issac, I’ve tried looking around on the Unity forums and have seen a few questions regarding this functionality, although I don’t think the functionality is available just yet in Unity: