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


Java DebugLog.w方法代码示例

本文整理汇总了Java中tv.danmaku.ijk.media.player.pragma.DebugLog.w方法的典型用法代码示例。如果您正苦于以下问题:Java DebugLog.w方法的具体用法?Java DebugLog.w怎么用?Java DebugLog.w使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在tv.danmaku.ijk.media.player.pragma.DebugLog的用法示例。


在下文中一共展示了DebugLog.w方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setScreenOnWhilePlaying

import tv.danmaku.ijk.media.player.pragma.DebugLog; //导入方法依赖的package包/类
@Override
public void setScreenOnWhilePlaying(boolean screenOn) {
    if (mScreenOnWhilePlaying != screenOn) {
        if (screenOn && mSurfaceHolder == null) {
            DebugLog.w(TAG,
                    "setScreenOnWhilePlaying(true) is ineffective without a SurfaceHolder");
        }
        mScreenOnWhilePlaying = screenOn;
        updateSurfaceScreenOn();
    }
}
 
开发者ID:Dreamxiaoxuan,项目名称:AndroidTvDemo,代码行数:12,代码来源:IjkMediaPlayer.java

示例2: setSurface

import tv.danmaku.ijk.media.player.pragma.DebugLog; //导入方法依赖的package包/类
/**
 * Sets the {@link Surface} to be used as the sink for the video portion of
 * the media. This is similar to {@link #setDisplay(SurfaceHolder)}, but
 * does not support {@link #setScreenOnWhilePlaying(boolean)}. Setting a
 * Surface will un-set any Surface or SurfaceHolder that was previously set.
 * A null surface will result in only the audio track being played.
 * 
 * If the Surface sends frames to a {@link SurfaceTexture}, the timestamps
 * returned from {@link SurfaceTexture#getTimestamp()} will have an
 * unspecified zero point. These timestamps cannot be directly compared
 * between different media sources, different instances of the same media
 * source, or multiple runs of the same program. The timestamp is normally
 * monotonically increasing and is unaffected by time-of-day adjustments,
 * but it is reset when the position is set.
 * 
 * @param surface
 *            The {@link Surface} to be used for the video portion of the
 *            media.
 */
@Override
public void setSurface(Surface surface) {
    if (mScreenOnWhilePlaying && surface != null) {
        DebugLog.w(TAG,
                "setScreenOnWhilePlaying(true) is ineffective for Surface");
    }
    mSurfaceHolder = null;
    _setVideoSurface(surface);
    updateSurfaceScreenOn();
}
 
开发者ID:Dreamxiaoxuan,项目名称:AndroidTvDemo,代码行数:30,代码来源:IjkMediaPlayer.java

示例3: setSurface

import tv.danmaku.ijk.media.player.pragma.DebugLog; //导入方法依赖的package包/类
/**
 * Sets the {@link Surface} to be used as the sink for the video portion of
 * the media. This is similar to {@link #setDisplay(SurfaceHolder)}, but
 * does not support {@link #setScreenOnWhilePlaying(boolean)}. Setting a
 * Surface will un-set any Surface or SurfaceHolder that was previously set.
 * A null surface will result in only the audio track being played.
 *
 * If the Surface sends frames to a {@link SurfaceTexture}, the timestamps
 * returned from {@link SurfaceTexture#getTimestamp()} will have an
 * unspecified zero point. These timestamps cannot be directly compared
 * between different media sources, different instances of the same media
 * source, or multiple runs of the same program. The timestamp is normally
 * monotonically increasing and is unaffected by time-of-day adjustments,
 * but it is reset when the position is set.
 *
 * @param surface
 *            The {@link Surface} to be used for the video portion of the
 *            media.
 */
@Override
public void setSurface(Surface surface) {
    if (mScreenOnWhilePlaying && surface != null) {
        DebugLog.w(TAG,
                "setScreenOnWhilePlaying(true) is ineffective for Surface");
    }
    mSurfaceHolder = null;
    _setVideoSurface(surface);
    updateSurfaceScreenOn();
}
 
开发者ID:bigjelly,项目名称:ShaddockVideoPlayer,代码行数:30,代码来源:IjkMediaPlayer.java


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