Skip to content

Instantly share code, notes, and snippets.

@yusufcakmak
Created November 17, 2016 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yusufcakmak/eed57c72525299c909b31d13c8ee0f81 to your computer and use it in GitHub Desktop.
Save yusufcakmak/eed57c72525299c909b31d13c8ee0f81 to your computer and use it in GitHub Desktop.
simpleExoPlayerView = (SimpleExoPlayerView) findViewById(R.id.player_view);
simpleExoPlayerView.requestFocus();
simpleExoPlayerView.setPlayer(player);
MediaSource mediaSource = new HlsMediaSource(Uri.parse("https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8"),
mediaDataSourceFactory, mainHandler, null);
player.prepare(mediaSource);
player.setPlayWhenReady(true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment