mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Add tap to pause to video trimming editor.
This commit is contained in:
committed by
Greyson Parrelli
parent
28bbfd88b2
commit
5038210d78
@@ -216,10 +216,15 @@ public class VideoPlayer extends FrameLayout {
|
||||
this.playerCallback = playerCallback;
|
||||
}
|
||||
|
||||
public void playFromStart() {
|
||||
/**
|
||||
* Resumes a paused video, or restarts if at end of video.
|
||||
*/
|
||||
public void play() {
|
||||
if (exoPlayer != null) {
|
||||
exoPlayer.setPlayWhenReady(true);
|
||||
exoPlayer.seekTo(0);
|
||||
if (exoPlayer.getCurrentPosition() >= exoPlayer.getDuration()) {
|
||||
exoPlayer.seekTo(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user