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
|
@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));
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue