feat(android): handle increment forward and rewind buttons (#3818)
* feat(android): handle increment forward and rewind buttons * fix: function name for get seekIncrementMS
This commit is contained in:
committed by
GitHub
parent
46e12e0b94
commit
5059e7a7f1
@@ -444,6 +444,17 @@ public class ReactExoplayerView extends FrameLayout implements
|
||||
setPausedModifier(false);
|
||||
});
|
||||
|
||||
//Handling the rewind and forward button click events
|
||||
ImageButton exoRewind = playerControlView.findViewById(R.id.exo_rew);
|
||||
ImageButton exoForward = playerControlView.findViewById(R.id.exo_ffwd);
|
||||
exoRewind.setOnClickListener((View v) -> {
|
||||
seekTo(player.getCurrentPosition() - controlsConfig.getSeekIncrementMS());
|
||||
});
|
||||
|
||||
exoForward.setOnClickListener((View v) -> {
|
||||
seekTo(player.getCurrentPosition() + controlsConfig.getSeekIncrementMS());
|
||||
});
|
||||
|
||||
//Handling the pauseButton click event
|
||||
ImageButton pauseButton = playerControlView.findViewById(R.id.exo_pause);
|
||||
pauseButton.setOnClickListener((View v) ->
|
||||
|
Reference in New Issue
Block a user