From 995682eca0d7bd04391a8ffb39ef18445a32dc79 Mon Sep 17 00:00:00 2001 From: olly Date: Fri, 21 Feb 2020 09:08:31 +0000 Subject: [PATCH] Reflect ffwd/rew amount of time to UI PiperOrigin-RevId: 296387837 --- .../android/exoplayer2/DefaultControlDispatcher.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/library/core/src/main/java/com/google/android/exoplayer2/DefaultControlDispatcher.java b/library/core/src/main/java/com/google/android/exoplayer2/DefaultControlDispatcher.java index 4d812d2d9a..7f24e6113f 100644 --- a/library/core/src/main/java/com/google/android/exoplayer2/DefaultControlDispatcher.java +++ b/library/core/src/main/java/com/google/android/exoplayer2/DefaultControlDispatcher.java @@ -140,6 +140,16 @@ public class DefaultControlDispatcher implements ControlDispatcher { return fastForwardIncrementMs > 0; } + /** Returns the rewind increment in milliseconds. */ + public long getRewindIncrementMs() { + return rewindIncrementMs; + } + + /** Returns the fast forward increment in milliseconds. */ + public long getFastForwardIncrementMs() { + return fastForwardIncrementMs; + } + /** * @deprecated Create a new instance instead and pass the new instance to the UI component. This * makes sure the UI gets updated and is in sync with the new values.