mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Always show view-once video remaining time.
This commit is contained in:
committed by
Alan Evans
parent
c142928fad
commit
c6b9855198
@@ -135,6 +135,13 @@ public class VideoPlayer extends FrameLayout {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
public long getPlaybackPosition() {
|
||||
if (this.exoPlayer != null) {
|
||||
return this.exoPlayer.getCurrentPosition();
|
||||
}
|
||||
return 0L;
|
||||
}
|
||||
|
||||
public void setWindow(@Nullable Window window) {
|
||||
this.window = window;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user