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


Java SimpleExoPlayer.setVideoSurface方法代码示例

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


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

示例1: buildExoPlayer

import com.google.android.exoplayer2.SimpleExoPlayer; //导入方法依赖的package包/类
@SuppressWarnings("unused")
protected SimpleExoPlayer buildExoPlayer(HostActivity host, Surface surface,
    MappingTrackSelector trackSelector,
    DrmSessionManager<FrameworkMediaCrypto> drmSessionManager) {
  SimpleExoPlayer player = ExoPlayerFactory.newSimpleInstance(host, trackSelector,
      new DefaultLoadControl(), drmSessionManager, SimpleExoPlayer.EXTENSION_RENDERER_MODE_OFF,
      0);
  player.setVideoSurface(surface);
  return player;
}
 
开发者ID:ashwanijanghu,项目名称:ExoPlayer-Offline,代码行数:11,代码来源:ExoHostedTest.java

示例2: buildExoPlayer

import com.google.android.exoplayer2.SimpleExoPlayer; //导入方法依赖的package包/类
@Override
protected SimpleExoPlayer buildExoPlayer(HostActivity host, Surface surface,
    MappingTrackSelector trackSelector,
    DrmSessionManager<FrameworkMediaCrypto> drmSessionManager) {
  SimpleExoPlayer player = new DebugSimpleExoPlayer(host, trackSelector,
      new DefaultLoadControl(), drmSessionManager);
  player.setVideoSurface(surface);
  return player;
}
 
开发者ID:ashwanijanghu,项目名称:ExoPlayer-Offline,代码行数:10,代码来源:DashTest.java

示例3: buildExoPlayer

import com.google.android.exoplayer2.SimpleExoPlayer; //导入方法依赖的package包/类
@Override
protected SimpleExoPlayer buildExoPlayer(HostActivity host, Surface surface,
    MappingTrackSelector trackSelector,
    DrmSessionManager<FrameworkMediaCrypto> drmSessionManager) {
  SimpleExoPlayer player = ExoPlayerFactory.newSimpleInstance(
      new DebugRenderersFactory(host, drmSessionManager), trackSelector);
  player.setVideoSurface(surface);
  return player;
}
 
开发者ID:y20k,项目名称:transistor,代码行数:10,代码来源:DashTestRunner.java

示例4: buildExoPlayer

import com.google.android.exoplayer2.SimpleExoPlayer; //导入方法依赖的package包/类
@SuppressWarnings("unused")
protected SimpleExoPlayer buildExoPlayer(HostActivity host, Surface surface,
    MappingTrackSelector trackSelector,
    DrmSessionManager<FrameworkMediaCrypto> drmSessionManager) {
  RenderersFactory renderersFactory = new DefaultRenderersFactory(host, drmSessionManager,
      DefaultRenderersFactory.EXTENSION_RENDERER_MODE_OFF, 0);
  SimpleExoPlayer player = ExoPlayerFactory.newSimpleInstance(renderersFactory, trackSelector);
  player.setVideoSurface(surface);
  return player;
}
 
开发者ID:y20k,项目名称:transistor,代码行数:11,代码来源:ExoHostedTest.java

示例5: doActionImpl

import com.google.android.exoplayer2.SimpleExoPlayer; //导入方法依赖的package包/类
@Override
protected void doActionImpl(SimpleExoPlayer player, MappingTrackSelector trackSelector,
    Surface surface) {
  player.setVideoSurface(surface);
}
 
开发者ID:y20k,项目名称:transistor,代码行数:6,代码来源:Action.java


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