Exemple #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            _mediaPlayer = new MediaPlayerSDK.MediaPlayer(VideoContentView.Bounds);
            VideoContentView.AddSubview(_mediaPlayer?.ContentView);
        }
Exemple #2
0
            public override int Status(MediaPlayerSDK.MediaPlayer player, int arg)
            {
                System.Console.WriteLine(String.Format("<binary> status: {0} ", arg));



                if (_delegate != null)
                {
                    BeginInvokeOnMainThread(() => { _delegate.DebugLbl.Text += String.Format(" {0}", arg); });
                    if (arg == (int)MediaPlayerSDK.MediaPlayerNotifyCodes.PlpCloseSuccessful)
                    {
                        BeginInvokeOnMainThread(() => {
                            _delegate.ConnectBtn.SetTitle("Connect", UIControlState.Normal);
                            _delegate.ConnectBtn.Tag = 0;
                        });
                    }
                }
                if (arg == (int)MediaPlayerSDK.MediaPlayerNotifyCodes.PlpBuildSuccessful)
                {
                    System.Console.WriteLine(player.StreamInfo);
                }

                return(0);
            }
Exemple #3
0
 public override int OnAudioSourceFrameAvailable(MediaPlayerSDK.MediaPlayer player, IntPtr buffer, int size, nint pts, nint dts, int stream_index, int format)
 {
     return(0);
 }
Exemple #4
0
 public override int OnVideoSourceFrameAvailable(MediaPlayerSDK.MediaPlayer player, IntPtr buffer, int size, nint pts, nint dts, int stream_index, int format)
 {
     //BeginInvokeOnMainThread( () => {  _delegate.DebugLbl.Text  =  String.Format("pts {0}",  pts); });
     return(0);
 }
Exemple #5
0
 public override int OnReceiveSubtitleString(MediaPlayerSDK.MediaPlayer player, string data, ulong duration)
 {
     return(0);
 }
Exemple #6
0
 public override int OnReceiveData(MediaPlayerSDK.MediaPlayer player, IntPtr buffer, int size, nint pts)
 {
     return(0);
 }