コード例 #1
0
 void ExtMediaController.IMediaPlayerControl.Start()
 {
     ExtStickyServ.Play();
 }
コード例 #2
0
        public void VideoView_OnClick(object sender, EventArgs e)
        {
            if (!MainPlaybackSticky.MediaControllerDictionary.ContainsKey(MainActivity.ViewPager.CurrentItem))
            {
                MainPlaybackSticky.MediaControllerDictionary.Add(MainActivity.ViewPager.CurrentItem, ExtStickyServ.InitializeMediaController(this.Context));
            }
            MainPlaybackSticky.MediaControllerDictionary[MainActivity.ViewPager.CurrentItem].SetAnchorView((View)FragmentContainerLayout.Parent);

            try
            {
                MainPlaybackSticky.MediaControllerDictionary[MainActivity.ViewPager.CurrentItem].Enabled = true;
                MainPlaybackSticky.MediaControllerDictionary[MainActivity.ViewPager.CurrentItem].Show(6000);
            }
            catch (Exception ex)
            {
                System.Console.WriteLine(ex.Message);
            }
        }
コード例 #3
0
 void ExtMediaController.IMediaPlayerControl.Pause()
 {
     ExtStickyServ.Pause();
 }