本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例5: doActionImpl
import com.google.android.exoplayer2.SimpleExoPlayer; //导入方法依赖的package包/类
@Override
protected void doActionImpl(SimpleExoPlayer player, MappingTrackSelector trackSelector,
Surface surface) {
player.setVideoSurface(surface);
}