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