Skip to content

Instantly share code, notes, and snippets.

@isaidamier
Created September 5, 2017 22:21
Show Gist options
  • Save isaidamier/44378ee551a3e6689f5432411566f7c5 to your computer and use it in GitHub Desktop.
Save isaidamier/44378ee551a3e6689f5432411566f7c5 to your computer and use it in GitHub Desktop.
BandwidthMeter bandwidthMeter = new DefaultBandwidthMeter();
TrackSelection.Factory videoTrackSelectionFactory =
new AdaptiveTrackSelection.Factory(bandwidthMeter);
TrackSelector trackSelector =
new DefaultTrackSelector(videoTrackSelectionFactory);
player = ExoPlayerFactory.newSimpleInstance(this, trackSelector);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment