Exemplo n.º 1
0
        public void InitMediaPlayer()
        {
            this.holder = this.Holder;
            this.holder.SetType(SurfaceType.PushBuffers);
            this.holder.AddCallback(this);

            this.player = new NativeMediaPlayer();

            this.player.VideoSizeChanged -= player_VideoSizeChanged;
            this.player.VideoSizeChanged += player_VideoSizeChanged;

            this.player.BufferingUpdate -= player_BufferingUpdate;
            this.player.BufferingUpdate += player_BufferingUpdate;

            this.player.SetOnCompletionListener(this);
            this.player.SetOnPreparedListener(this);
        }
Exemplo n.º 2
0
        public void InitMediaPlayer()
        {
            this.holder = this.Holder;
            this.holder.SetType(SurfaceType.PushBuffers);
            this.holder.AddCallback(this);

            this.player = new NativeMediaPlayer();

            this.player.VideoSizeChanged -= player_VideoSizeChanged;
            this.player.VideoSizeChanged += player_VideoSizeChanged;

            this.player.BufferingUpdate -= player_BufferingUpdate;
            this.player.BufferingUpdate += player_BufferingUpdate;

            this.player.SetOnCompletionListener(this);
            this.player.SetOnPreparedListener(this);
        }