Always show view-once video remaining time.

This commit is contained in:
Greyson Parrelli
2020-01-07 14:57:21 -05:00
committed by Alan Evans
parent c142928fad
commit c6b9855198
2 changed files with 11 additions and 19 deletions

View File

@@ -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;
}