public void TriggerPlayVideo() { var playevent = PlayVideoEvent.Create(); playevent.playNow = true; playevent.Send(); // videoStreaming = FindObjectOfType<VideoStreaming>(); // videoStreaming.UpdateFrame(); }
public override void OnEvent(PlayVideoEvent evnt) { Debug.Log(evnt.playNow); if (evnt.playNow) { VideoStreaming.playvideoNow = true; evnt.playNow = false; } Debug.Log(evnt.playNow); }
private void PlayVideo(PlayVideoEvent ev) { Intent appIntent = new Intent(Intent.ActionView, Android.Net.Uri.Parse("vnd.youtube:" + ev.Key)); Intent webIntent = new Intent(Intent.ActionView, Android.Net.Uri.Parse("http://www.youtube.com/watch?v=" + ev.Key)); try { StartActivity(appIntent); } catch (ActivityNotFoundException ex) { StartActivity(webIntent); } }
public void Handle(PlayVideoEvent playVideoEvent) { VideoPlayer.Play(); }
public void Handle(PlayVideoEvent message) { VideoPlayer.Play(); PositionUpdateTimer.Start(); }