use of com.google.android.exoplayer2.trackselection.MappingTrackSelector in project ExoPlayer by google.
the class ExoHostedTest method buildExoPlayer.
@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;
}
Aggregations