I’ve already done some searching but did not find a working example.
jonas echterhoff has some solution but it didn’t work for me (I cannot send a message to him)
This is working only on desktop builds. But on WebGL the the problem is with MovieTexture.
using UnityEngine;
using System.Collections;
public class Video : MonoBehaviour {
public MovieTexture movie;
// Use this for initialization
void Start () {
GetComponent<Renderer>().material.mainTexture = movie as MovieTexture;
movie.Play();
}
}