コード例 #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);
        }
コード例 #2
0
ファイル: WrapedVideoView.cs プロジェクト: evnik/UIFramework
        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);
        }