I’m trying to stream a video with WWW.
All is fine when played within the Unity player, but when I export to a web-player the video is missing.
Any suggestions?
Thanks, Robert
function Start () {
LoadIt();
}
function LoadIt () {
var tWWW = new WWW("http://www.passievoorpiano.nl/movie/sample.ogg");
renderer.material.mainTexture = tWWW.movie;
while(!renderer.material.mainTexture.isReadyToPlay) {
yield;
}
renderer.material.mainTexture.Play();
}
// Make sure we have gui texture and audio source
@script RequireComponent (GUITexture)
//@script RequireComponent (AudioSource)