mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add document for show_subtitle_button attribute
This also removes unused deprecated methods. PiperOrigin-RevId: 320141729
This commit is contained in:
parent
ebb9569624
commit
b8e9f19b37
2 changed files with 5 additions and 49 deletions
|
|
@ -127,6 +127,11 @@ import java.util.concurrent.CopyOnWriteArrayList;
|
||||||
* <li>Corresponding method: {@link #setShowShuffleButton(boolean)}
|
* <li>Corresponding method: {@link #setShowShuffleButton(boolean)}
|
||||||
* <li>Default: false
|
* <li>Default: false
|
||||||
* </ul>
|
* </ul>
|
||||||
|
* <li><b>{@code show_subtitle_button}</b> - Whether the shuffle button is shown.
|
||||||
|
* <ul>
|
||||||
|
* <li>Corresponding method: {@link #setShowSubtitleButton(boolean)}
|
||||||
|
* <li>Default: false
|
||||||
|
* </ul>
|
||||||
* <li><b>{@code animation_enabled}</b> - Whether an animation is used to show and hide the
|
* <li><b>{@code animation_enabled}</b> - Whether an animation is used to show and hide the
|
||||||
* playback controls.
|
* playback controls.
|
||||||
* <ul>
|
* <ul>
|
||||||
|
|
@ -887,32 +892,6 @@ public class StyledPlayerControlView extends FrameLayout {
|
||||||
updateNavigation();
|
updateNavigation();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #setControlDispatcher(ControlDispatcher)} with {@link
|
|
||||||
* DefaultControlDispatcher#DefaultControlDispatcher(long, long)}.
|
|
||||||
*/
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
@Deprecated
|
|
||||||
public void setRewindIncrementMs(int rewindMs) {
|
|
||||||
if (controlDispatcher instanceof DefaultControlDispatcher) {
|
|
||||||
((DefaultControlDispatcher) controlDispatcher).setRewindIncrementMs(rewindMs);
|
|
||||||
updateNavigation();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #setControlDispatcher(ControlDispatcher)} with {@link
|
|
||||||
* DefaultControlDispatcher#DefaultControlDispatcher(long, long)}.
|
|
||||||
*/
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
@Deprecated
|
|
||||||
public void setFastForwardIncrementMs(int fastForwardMs) {
|
|
||||||
if (controlDispatcher instanceof DefaultControlDispatcher) {
|
|
||||||
((DefaultControlDispatcher) controlDispatcher).setFastForwardIncrementMs(fastForwardMs);
|
|
||||||
updateNavigation();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the playback controls timeout. The playback controls are automatically hidden after
|
* Returns the playback controls timeout. The playback controls are automatically hidden after
|
||||||
* this duration of time has elapsed without user input.
|
* this duration of time has elapsed without user input.
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,6 @@ import androidx.annotation.RequiresApi;
|
||||||
import androidx.core.content.ContextCompat;
|
import androidx.core.content.ContextCompat;
|
||||||
import com.google.android.exoplayer2.C;
|
import com.google.android.exoplayer2.C;
|
||||||
import com.google.android.exoplayer2.ControlDispatcher;
|
import com.google.android.exoplayer2.ControlDispatcher;
|
||||||
import com.google.android.exoplayer2.DefaultControlDispatcher;
|
|
||||||
import com.google.android.exoplayer2.ExoPlaybackException;
|
import com.google.android.exoplayer2.ExoPlaybackException;
|
||||||
import com.google.android.exoplayer2.PlaybackPreparer;
|
import com.google.android.exoplayer2.PlaybackPreparer;
|
||||||
import com.google.android.exoplayer2.Player;
|
import com.google.android.exoplayer2.Player;
|
||||||
|
|
@ -1036,28 +1035,6 @@ public class StyledPlayerView extends FrameLayout implements AdsLoader.AdViewPro
|
||||||
controller.setShowNextButton(showNextButton);
|
controller.setShowNextButton(showNextButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #setControlDispatcher(ControlDispatcher)} with {@link
|
|
||||||
* DefaultControlDispatcher#DefaultControlDispatcher(long, long)}.
|
|
||||||
*/
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
@Deprecated
|
|
||||||
public void setRewindIncrementMs(int rewindMs) {
|
|
||||||
Assertions.checkStateNotNull(controller);
|
|
||||||
controller.setRewindIncrementMs(rewindMs);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #setControlDispatcher(ControlDispatcher)} with {@link
|
|
||||||
* DefaultControlDispatcher#DefaultControlDispatcher(long, long)}.
|
|
||||||
*/
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
@Deprecated
|
|
||||||
public void setFastForwardIncrementMs(int fastForwardMs) {
|
|
||||||
Assertions.checkStateNotNull(controller);
|
|
||||||
controller.setFastForwardIncrementMs(fastForwardMs);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets which repeat toggle modes are enabled.
|
* Sets which repeat toggle modes are enabled.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue