add interface-method and TODOs for switching audio-tracks

This commit is contained in:
Felix 2017-04-04 02:36:43 +02:00
parent fec8fa07d5
commit 58e361e330
2 changed files with 7 additions and 4 deletions

View file

@ -74,7 +74,7 @@ public class PlayerActivity extends AbstractServiceConnectedAcitivty
@Override @Override
protected void onStart() { protected void onStart() {
super.onStart(); super.onStart();
// mPlaybackControllFragment.startEntranceTransition(); // TODO get persisted playback progress
} }
@Override @Override
@ -93,11 +93,8 @@ public class PlayerActivity extends AbstractServiceConnectedAcitivty
= new AdaptiveTrackSelection.Factory(bandwidthMeter); = new AdaptiveTrackSelection.Factory(bandwidthMeter);
trackSelector trackSelector
= new DefaultTrackSelector(videoTrackSelectionFactory); = new DefaultTrackSelector(videoTrackSelectionFactory);
LoadControl loadControl = new DefaultLoadControl(); LoadControl loadControl = new DefaultLoadControl();
player = ExoPlayerFactory.newSimpleInstance(this, trackSelector, loadControl); player = ExoPlayerFactory.newSimpleInstance(this, trackSelector, loadControl);
player.setVideoSurfaceView(mSurfaceView); player.setVideoSurfaceView(mSurfaceView);
} }
@ -182,6 +179,11 @@ public class PlayerActivity extends AbstractServiceConnectedAcitivty
} }
} }
@Override
public void nextAudioStream() {
// TODO cycle through audio streams
}
@Override @Override
public void skipForward(int sec){ public void skipForward(int sec){
player.seekTo(player.getCurrentPosition()+(sec*1000)); player.seekTo(player.getCurrentPosition()+(sec*1000));

View file

@ -100,6 +100,7 @@ public class OverlayFragment extends PlaybackFragment{
long getPosition(); long getPosition();
long getBufferedPosition(); long getBufferedPosition();
void mute(boolean state); void mute(boolean state);
void nextAudioStream();
} }
@Override @Override