本文整理汇总了Java中tv.danmaku.ijk.media.player.pragma.DebugLog.d方法的典型用法代码示例。如果您正苦于以下问题:Java DebugLog.d方法的具体用法?Java DebugLog.d怎么用?Java DebugLog.d使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tv.danmaku.ijk.media.player.pragma.DebugLog
的用法示例。
在下文中一共展示了DebugLog.d方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onPrepared
import tv.danmaku.ijk.media.player.pragma.DebugLog; //导入方法依赖的package包/类
public void onPrepared(IMediaPlayer mp) {
DebugLog.d(TAG, "onPrepared");
mCurrentState = STATE_PREPARED;
mTargetState = STATE_PLAYING;
if (mOnPreparedListener != null) {
mOnPreparedListener.onPrepared(mMediaPlayer);
}
if (mMediaController != null) {
mMediaController.setEnabled(true);
}
mVideoWidth = mp.getVideoWidth();
mVideoHeight = mp.getVideoHeight();
long seekToPosition = mSeekWhenPrepared;
if (seekToPosition != 0) {
seekTo(seekToPosition);
}
if (mVideoWidth != 0 && mVideoHeight != 0) {
setVideoLayout(mVideoLayout);
if (mSurfaceWidth == mVideoWidth
&& mSurfaceHeight == mVideoHeight) {
if (mTargetState == STATE_PLAYING) {
start();
if (mMediaController != null) {
mMediaController.show();
}
} else if (!isPlaying()
&& (seekToPosition != 0 || getCurrentPosition() > 0)) {
if (mMediaController != null) {
mMediaController.show(0);
}
}
}
} else if (mTargetState == STATE_PLAYING) {
start();
}
}
示例2: onCompletion
import tv.danmaku.ijk.media.player.pragma.DebugLog; //导入方法依赖的package包/类
public void onCompletion(IMediaPlayer mp) {
DebugLog.d(TAG, "onCompletion");
mCurrentState = STATE_PLAYBACK_COMPLETED;
mTargetState = STATE_PLAYBACK_COMPLETED;
if (mMediaController != null) {
mMediaController.hide();
}
if (mOnCompletionListener != null) {
mOnCompletionListener.onCompletion(mMediaPlayer);
}
}
示例3: onSeekComplete
import tv.danmaku.ijk.media.player.pragma.DebugLog; //导入方法依赖的package包/类
@Override
public void onSeekComplete(IMediaPlayer mp) {
DebugLog.d(TAG, "onSeekComplete");
if (mOnSeekCompleteListener != null) {
mOnSeekCompleteListener.onSeekComplete(mp);
}
}
示例4: onPrepared
import tv.danmaku.ijk.media.player.pragma.DebugLog; //导入方法依赖的package包/类
@Override
public void onPrepared(IMediaPlayer player) {
DebugLog.d(TAG, "OnPrepare");
mCurrentState = STATE_PREPARED;
mTargetState = STATE_PLAYING;
if (mOnPreparedListener != null){
mOnPreparedListener.onPrepared(player);
}
if (mMediaController != null){
mMediaController.setEnabled(true);
}
mVideoWidth = player.getVideoWidth();
mVideoHeight = player.getVideoHeight();
long seekToPosition = mSeekWhenPrepared;
if (seekToPosition != 0){
seekTo(seekToPosition);
}
if (mVideoWidth != 0 && mVideoHeight != 0){
setVideoLayout(mVideoLayout);
if (mSurfaceWidth == mVideoWidth && mSurfaceHeight == mVideoHeight){
if (mTargetState == STATE_PLAYING){
start();
if (mMediaController != null)
mMediaController.show();
} else if (!isPlaying() && (seekToPosition != 0 || getCurrentPosition() > 0)){
if (mMediaController != null)
mMediaController.show(0);
}
}
} else if (mTargetState == STATE_PLAYING){
start();
}
}
示例5: onCompletion
import tv.danmaku.ijk.media.player.pragma.DebugLog; //导入方法依赖的package包/类
@Override
public void onCompletion(IMediaPlayer iMediaPlayer) {
DebugLog.d(TAG, "onCompletion");
mCurrentState = STATE_PLAYBACK_COMPLETED;
mTargetState = STATE_PLAYBACK_COMPLETED;
if (mMediaController != null)
mMediaController.hide();
if (mOnCompletionListener != null)
mOnCompletionListener.onCompletion(mMediaPlayer);
}
示例6: onSeekComplete
import tv.danmaku.ijk.media.player.pragma.DebugLog; //导入方法依赖的package包/类
@Override
public void onSeekComplete(IMediaPlayer player) {
DebugLog.d(TAG, "onSeekComplete");
if (mOnSeekCompleteListener != null)
mOnSeekCompleteListener.onSeekComplete(player);
}