Ejemplo n.º 1
0
    public void TriggerPlayVideo()
    {
        var playevent = PlayVideoEvent.Create();

        playevent.playNow = true;
        playevent.Send();
        //  videoStreaming = FindObjectOfType<VideoStreaming>();
        // videoStreaming.UpdateFrame();
    }
Ejemplo n.º 2
0
 public override void OnEvent(PlayVideoEvent evnt)
 {
     Debug.Log(evnt.playNow);
     if (evnt.playNow)
     {
         VideoStreaming.playvideoNow = true;
         evnt.playNow = false;
     }
     Debug.Log(evnt.playNow);
 }
Ejemplo n.º 3
0
        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);
            }
        }
Ejemplo n.º 4
0
 public void Handle(PlayVideoEvent playVideoEvent)
 {
     VideoPlayer.Play();
 }
Ejemplo n.º 5
0
 public void Handle(PlayVideoEvent message)
 {
     VideoPlayer.Play();
     PositionUpdateTimer.Start();
 }