Search in sources :

Example 1 with OnHWRenderFailedListener

use of io.vov.vitamio.MediaPlayer.OnHWRenderFailedListener in project ABPlayer by winkstu.

the class PlayerService method vplayerInit.

private void vplayerInit(boolean isHWCodec) {
    mPlayer = new MediaPlayer(PlayerService.this.getApplicationContext(), isHWCodec);
    mPlayer.setOnHWRenderFailedListener(new OnHWRenderFailedListener() {

        @Override
        public void onFailed() {
            if (mListener != null)
                mListener.onHWRenderFailed();
        }
    });
    mPlayer.setOnBufferingUpdateListener(PlayerService.this);
    mPlayer.setOnCompletionListener(PlayerService.this);
    mPlayer.setOnPreparedListener(PlayerService.this);
    mPlayer.setOnVideoSizeChangedListener(PlayerService.this);
    mPlayer.setOnErrorListener(PlayerService.this);
    mPlayer.setOnInfoListener(PlayerService.this);
}
Also used : OnHWRenderFailedListener(io.vov.vitamio.MediaPlayer.OnHWRenderFailedListener) MediaPlayer(io.vov.vitamio.MediaPlayer)

Aggregations

MediaPlayer (io.vov.vitamio.MediaPlayer)1 OnHWRenderFailedListener (io.vov.vitamio.MediaPlayer.OnHWRenderFailedListener)1