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


Java Util.SDK_INT属性代码示例

本文整理汇总了Java中com.google.android.exoplayer2.util.Util.SDK_INT属性的典型用法代码示例。如果您正苦于以下问题:Java Util.SDK_INT属性的具体用法?Java Util.SDK_INT怎么用?Java Util.SDK_INT使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.google.android.exoplayer2.util.Util的用法示例。


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

示例1: onStop

@Override
public void onStop() {
  super.onStop();
  if (Util.SDK_INT > 23) {
    releasePlayer();
  }
}
 
开发者ID:googlecodelabs,项目名称:exoplayer-intro,代码行数:7,代码来源:PlayerActivity.java

示例2: testH265AdaptiveWithRendererDisabling

public void testH265AdaptiveWithRendererDisabling() throws DecoderQueryException {
  if (Util.SDK_INT < 24 || shouldSkipAdaptiveTest(MimeTypes.VIDEO_H265)) {
    // Pass.
    return;
  }
  String streamName = "test_h265_adaptive_with_renderer_disabling";
  testDashPlayback(getActivity(), streamName, RENDERER_DISABLING_SCHEDULE, false,
      H265_MANIFEST, AAC_AUDIO_REPRESENTATION_ID, false, MimeTypes.VIDEO_H265,
      ALLOW_ADDITIONAL_VIDEO_FORMATS, H265_CDD_ADAPTIVE);
}
 
开发者ID:ashwanijanghu,项目名称:ExoPlayer-Offline,代码行数:10,代码来源:DashTest.java

示例3: testWidevineVp9AdaptiveWithSeeking

public void testWidevineVp9AdaptiveWithSeeking() throws DecoderQueryException {
  if (Util.SDK_INT < 24 || shouldSkipAdaptiveTest(MimeTypes.VIDEO_VP9)) {
    // Pass.
    return;
  }
  String streamName = "test_widevine_vp9_adaptive_with_seeking";
  testDashPlayback(getActivity(), streamName, SEEKING_SCHEDULE, false,
      WIDEVINE_VP9_MANIFEST_PREFIX, WIDEVINE_VORBIS_AUDIO_REPRESENTATION_ID, true,
      MimeTypes.VIDEO_VP9, ALLOW_ADDITIONAL_VIDEO_FORMATS, WIDEVINE_VP9_CDD_ADAPTIVE);
}
 
开发者ID:ashwanijanghu,项目名称:ExoPlayer-Offline,代码行数:10,代码来源:DashTest.java

示例4: onPause

@Override
public void onPause() {
  super.onPause();
  if (Util.SDK_INT <= 23) {
    releasePlayer();
  }
}
 
开发者ID:googlecodelabs,项目名称:exoplayer-intro,代码行数:7,代码来源:PlayerActivity.java

示例5: onResume

@Override
public void onResume() {
    super.onResume();
    if ((Util.SDK_INT <= 23 || mTubiExoPlayer == null)) {
        setupExo();
    }
}
 
开发者ID:Tubitv,项目名称:TubiPlayer,代码行数:7,代码来源:TubiPlayerActivity.java

示例6: testWidevine23FpsH264Fixed

public void testWidevine23FpsH264Fixed() throws DecoderQueryException {
  if (Util.SDK_INT < 23) {
    // Pass.
    return;
  }
  String streamName = "test_widevine_23fps_h264_fixed";
  testDashPlayback(getActivity(), streamName, WIDEVINE_H264_23_MANIFEST_PREFIX,
      WIDEVINE_AAC_AUDIO_REPRESENTATION_ID, true, MimeTypes.VIDEO_H264, false,
      WIDEVINE_H264_BASELINE_480P_23FPS_VIDEO_REPRESENTATION_ID);
}
 
开发者ID:ashwanijanghu,项目名称:ExoPlayer-Offline,代码行数:10,代码来源:DashTest.java

示例7: onStop

@Override
public void onStop() {
    super.onStop();
    if (Util.SDK_INT > 23) {
        releasePlayer();
    }
}
 
开发者ID:Tubitv,项目名称:TubiPlayer,代码行数:7,代码来源:TubiPlayerActivity.java

示例8: onResume

@Override
public void onResume() {
  super.onResume();
  hideSystemUi();
  if ((Util.SDK_INT <= 23 || player == null)) {
    initializePlayer();
  }
}
 
开发者ID:googlecodelabs,项目名称:exoplayer-intro,代码行数:8,代码来源:PlayerActivity.java

示例9: onStart

@Override
public void onStart() {
    super.onStart();
    if (Util.SDK_INT > 23) {
        initializePlayer();
    }
}
 
开发者ID:ashwanijanghu,项目名称:ExoPlayer-Offline,代码行数:7,代码来源:PlayerActivity.java

示例10: onStart

@Override
public void onStart() {
  super.onStart();
  if (Util.SDK_INT > 23) {
    initializePlayer();
  }
}
 
开发者ID:googlecodelabs,项目名称:exoplayer-intro,代码行数:7,代码来源:PlayerActivity.java

示例11: onPause

@Override
protected void onPause() {
    super.onPause();
    if (Util.SDK_INT <= 23) {
        playerInstance.pausePlayer();
    }
}
 
开发者ID:mingdroid,项目名称:tumbviewer,代码行数:7,代码来源:VideoPlayerActivity.java

示例12: testWidevineH264Fixed

public void testWidevineH264Fixed() throws DecoderQueryException {
  if (Util.SDK_INT < 18) {
    // Pass.
    return;
  }
  String streamName = "test_widevine_h264_fixed";
  testDashPlayback(getActivity(), streamName, WIDEVINE_H264_MANIFEST_PREFIX,
      WIDEVINE_AAC_AUDIO_REPRESENTATION_ID, true, MimeTypes.VIDEO_H264, false,
      WIDEVINE_H264_CDD_FIXED);
}
 
开发者ID:ashwanijanghu,项目名称:ExoPlayer-Offline,代码行数:10,代码来源:DashTest.java

示例13: testVp9AdaptiveWithRendererDisabling

public void testVp9AdaptiveWithRendererDisabling() throws DecoderQueryException {
  if (Util.SDK_INT < 24 || shouldSkipAdaptiveTest(MimeTypes.VIDEO_VP9)) {
    // Pass.
    return;
  }
  String streamName = "test_vp9_adaptive_with_renderer_disabling";
  testDashPlayback(getActivity(), streamName, RENDERER_DISABLING_SCHEDULE, false,
      VP9_MANIFEST, VORBIS_AUDIO_REPRESENTATION_ID, false, MimeTypes.VIDEO_VP9,
      ALLOW_ADDITIONAL_VIDEO_FORMATS, VP9_CDD_ADAPTIVE);
}
 
开发者ID:ashwanijanghu,项目名称:ExoPlayer-Offline,代码行数:10,代码来源:DashTest.java

示例14: onStart

public void onStart() {
    if (Util.SDK_INT > 23) {
        createPlayers();
    }
}
 
开发者ID:rubensousa,项目名称:PreviewSeekBar,代码行数:5,代码来源:ExoPlayerManager.java

示例15: onPause

public void onPause() {
    if (Util.SDK_INT <= 23) {
        releasePlayers();
    }
}
 
开发者ID:rubensousa,项目名称:PreviewSeekBar,代码行数:5,代码来源:ExoPlayerManager.java


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