本文整理汇总了Java中com.pili.pldroid.player.PLMediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START属性的典型用法代码示例。如果您正苦于以下问题:Java PLMediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START属性的具体用法?Java PLMediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START怎么用?Java PLMediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.pili.pldroid.player.PLMediaPlayer
的用法示例。
在下文中一共展示了PLMediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onInfo
@Override
public boolean onInfo(PLMediaPlayer mp, int what, int extra) {
Log.i(TAG, "OnInfo, what = " + what + ", extra = " + extra);
switch (what) {
case PLMediaPlayer.MEDIA_INFO_BUFFERING_START:
mActivity.onConnecting();
break;
case PLMediaPlayer.MEDIA_INFO_BUFFERING_END:
case PLMediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START:
mActivity.onConnectSucces();
break;
default:
break;
}
return true;
}
示例2: onInfo
@Override
public boolean onInfo(PLMediaPlayer plMediaPlayer, int what, int extra) {
//Log.d(TAG, "onInfo: " + what + ", " + extra);
switch (what) {
case PLMediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START:
//一下两行解决flv开始黑屏的问题
if(uri.indexOf(".flv")!=-1){
plVideoTextureView.pause();
plVideoTextureView.start();
}
mEventEmitter.receiveEvent(getTargetId(), Events.PLAYING.toString(), Arguments.createMap());
break;
case PLMediaPlayer.MEDIA_INFO_BUFFERING_START:
mEventEmitter.receiveEvent(getTargetId(),Events.BUFFERING_START.toString(),Arguments.createMap());
break;
case PLMediaPlayer.MEDIA_INFO_BUFFERING_END:
mEventEmitter.receiveEvent(getTargetId(), Events.BUFFERING_END.toString(), Arguments.createMap());
break;
}
return true;
}
示例3: onInfo
@Override
public boolean onInfo(PLMediaPlayer mp, int what, int extra) {
Log.i(TAG, "OnInfo, what = " + what + ", extra = " + extra);
switch (what) {
case PLMediaPlayer.MEDIA_INFO_BUFFERING_START:
mLoadingView.setVisibility(View.VISIBLE);
break;
case PLMediaPlayer.MEDIA_INFO_BUFFERING_END:
case PLMediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START:
mLoadingView.setVisibility(View.GONE);
break;
default:
break;
}
return true;
}
示例4: onInfo
@Override
public boolean onInfo(PLMediaPlayer plMediaPlayer, int what, int extra) {
switch (what) {
case PLMediaPlayer.MEDIA_INFO_BUFFERING_START://开始缓冲
// isVideoPrepared = false;
Log.d("PLMediaPlayer", "onInfo: MEDIA_INFO_BUFFERING_START");
break;
case PLMediaPlayer.MEDIA_INFO_BUFFERING_END://缓冲结束
Log.d("PLMediaPlayer", "onInfo: MEDIA_INFO_BUFFERING_END");
break;
case PLMediaPlayer.MEDIA_INFO_BUFFERING_BYTES_UPDATE:
Log.d("PLMediaPlayer", "onInfo: MEDIA_INFO_BUFFERING_BYTES_UPDATE");
break;
case PLMediaPlayer.MEDIA_INFO_NOT_SEEKABLE:
Log.d("PLMediaPlayer", "onInfo: MEDIA_INFO_NOT_SEEKABLE");
break;
case PLMediaPlayer.MEDIA_INFO_VIDEO_ROTATION_CHANGED:
Log.d("PLMediaPlayer", "onInfo: MEDIA_INFO_VIDEO_ROTATION_CHANGED");
break;
case PLMediaPlayer.MEDIA_INFO_AUDIO_RENDERING_START:
Log.d("PLMediaPlayer", "onInfo: MEDIA_INFO_AUDIO_RENDERING_START");
break;
case PLMediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START://视频缓冲完成可播放
progressbar.setVisibility(View.GONE);
isVideoPrepared = true;
isPause = false;
iv_play_pause_landscape.setImageResource(isPause ? R.drawable.selector_btn_play : R.drawable.selector_btn_pause);
Log.d("PLMediaPlayer", "onInfo: MEDIA_INFO_VIDEO_RENDERING_START");
break;
default:
Log.d("PLMediaPlayer", "onInfo: " + what);
break;
}
return true;
}
示例5: onInfo
@Override
public boolean onInfo(PLMediaPlayer plMediaPlayer, int what, int extra) {
Log.i(TAG, "OnInfo, what = " + what + ", extra = " + extra);
switch (what) {
case PLMediaPlayer.MEDIA_INFO_BUFFERING_START:
break;
case PLMediaPlayer.MEDIA_INFO_BUFFERING_END:
break;
case PLMediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START:
ToastUtils.s(PlaybackActivity.this, "first video render time: " + extra + "ms");
break;
case PLMediaPlayer.MEDIA_INFO_AUDIO_RENDERING_START:
break;
case PLMediaPlayer.MEDIA_INFO_VIDEO_FRAME_RENDERING:
Log.i(TAG, "video frame rendering, ts = " + extra);
break;
case PLMediaPlayer.MEDIA_INFO_AUDIO_FRAME_RENDERING:
Log.i(TAG, "audio frame rendering, ts = " + extra);
break;
case PLMediaPlayer.MEDIA_INFO_VIDEO_GOP_TIME:
Log.i(TAG, "Gop Time: " + extra);
break;
case PLMediaPlayer.MEDIA_INFO_SWITCHING_SW_DECODE:
Log.i(TAG, "Hardware decoding failure, switching software decoding!");
break;
case PLMediaPlayer.MEDIA_INFO_METADATA:
Log.i(TAG, mVideoView.getMetadata().toString());
break;
case PLMediaPlayer.MEDIA_INFO_VIDEO_BITRATE:
case PLMediaPlayer.MEDIA_INFO_VIDEO_FPS:
Log.i(TAG, "FPS: " + extra);
break;
case PLMediaPlayer.MEDIA_INFO_CONNECTED:
Log.i(TAG, "Connected !");
break;
case PLMediaPlayer.MEDIA_INFO_VIDEO_ROTATION_CHANGED:
Log.i(TAG, "Rotation Changed: " + extra);
mVideoView.setDisplayOrientation(360 - extra);
break;
default:
break;
}
return true;
}