mirror of
https://github.com/NiciDieNase/chaosflix
synced 2024-11-23 12:53:08 +00:00
add interface-method and TODOs for switching audio-tracks
This commit is contained in:
parent
fec8fa07d5
commit
58e361e330
2 changed files with 7 additions and 4 deletions
|
@ -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));
|
||||
|
|
|
@ -100,6 +100,7 @@ public class OverlayFragment extends PlaybackFragment{
|
|||
long getPosition();
|
||||
long getBufferedPosition();
|
||||
void mute(boolean state);
|
||||
void nextAudioStream();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue