当前位置: 首页>>代码示例>>Java>>正文


Java PLMediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START属性代码示例

本文整理汇总了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;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:17,代码来源:LivePlayerHolder.java

示例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;
}
 
开发者ID:2534290808,项目名称:react-native-android-piliplayer,代码行数:21,代码来源:PLVideoTextureViewManager.java

示例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;
}
 
开发者ID:qq137712630,项目名称:MeiZiNews,代码行数:16,代码来源:PLMediaPlayerActivity.java

示例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;
    }
 
开发者ID:452MJ,项目名称:C9MJ,代码行数:35,代码来源:LivePlayActivity.java

示例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;
}
 
开发者ID:pili-engineering,项目名称:PLDroidShortVideo,代码行数:44,代码来源:PlaybackActivity.java


注:本文中的com.pili.pldroid.player.PLMediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。