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

View file

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