@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);
 }
Beispiel #2
0
 public void seekTo(long positionMs) {
   player.seekTo(positionMs);
 }
Beispiel #3
0
 @Override
 protected void doActionImpl(ExoPlayer player) {
   player.seekTo(positionMs);
 }