Search in sources :

Example 1 with MappingTrackSelector

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;
}
Also used : SimpleExoPlayer(com.google.android.exoplayer2.SimpleExoPlayer) DefaultLoadControl(com.google.android.exoplayer2.DefaultLoadControl)

Aggregations

DefaultLoadControl (com.google.android.exoplayer2.DefaultLoadControl)1 SimpleExoPlayer (com.google.android.exoplayer2.SimpleExoPlayer)1