private void Awake() { mediaPlayer.SetGameObject(gameObject); // Init media player mediaPlayer.Init(); // Set default renderer mediaPlayer.SetTargetRenderer(quadRenderer.GetComponent <Renderer>()); // Set load video if (!string.IsNullOrEmpty(videoUrl)) { Load(videoUrl, autoPlay); } mediaPlayer.SetLooping(loop); }
public void Init(string title, string url) { videoView.Init(name, title, url); }