@Override
 public void onResume() {
   super.onResume();
   mPlayer = ExoPlayer.Factory.newInstance(2, 1000, 5000);
   mPlayer.addListener(this);
   mPlayer.seekTo(mPlayerPosition);
   mMediaController.setMediaPlayer(new PlayerControl(mPlayer));
   mMediaController.setEnabled(true);
   mCallback = new RendererBuilderCallback();
   mBuilder.buildRenderers(mCallback);
 }
Ejemplo n.º 2
0
 public void seekTo(long positionMs) {
   player.seekTo(positionMs);
 }
Ejemplo n.º 3
0
 @Override
 protected void doActionImpl(ExoPlayer player) {
   player.seekTo(positionMs);
 }