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


Java DebugLog.d方法代码示例

本文整理汇总了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();
      }
    }
 
开发者ID:MUFCRyan,项目名称:BilibiliClient,代码行数:41,代码来源:VideoPlayerView.java

示例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);
      }
    }
 
开发者ID:MUFCRyan,项目名称:BilibiliClient,代码行数:13,代码来源:VideoPlayerView.java

示例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);
  }
}
 
开发者ID:MUFCRyan,项目名称:BilibiliClient,代码行数:9,代码来源:VideoPlayerView.java

示例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();
    }
}
 
开发者ID:MUFCRyan,项目名称:BilibiliClient,代码行数:34,代码来源:VideoPlayerView.java

示例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);
}
 
开发者ID:MUFCRyan,项目名称:BilibiliClient,代码行数:11,代码来源:VideoPlayerView.java

示例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);
}
 
开发者ID:MUFCRyan,项目名称:BilibiliClient,代码行数:7,代码来源:VideoPlayerView.java


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