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); }