Package com.castlabs.android.player
Enum TrickplayConfiguration.SpeedupMode
- java.lang.Object
-
- java.lang.Enum<TrickplayConfiguration.SpeedupMode>
-
- com.castlabs.android.player.TrickplayConfiguration.SpeedupMode
-
- All Implemented Interfaces:
Serializable
,Comparable<TrickplayConfiguration.SpeedupMode>
- Enclosing class:
- TrickplayConfiguration
public static enum TrickplayConfiguration.SpeedupMode extends Enum<TrickplayConfiguration.SpeedupMode>
Speedup mode to use during Trickplay
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TrickplayConfiguration.SpeedupMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static TrickplayConfiguration.SpeedupMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DECODER
public static final TrickplayConfiguration.SpeedupMode DECODER
Decoder speedup. Playback will be naturally speeded up. It's possible that the decoder drops frames if the speed is too high.Note that this mode can only work with speeds > 0.
-
SEEK
public static final TrickplayConfiguration.SpeedupMode SEEK
Seek-based play. In this mode, the player will be kept inPlayerController.State.Pausing
state and perform seek operations to mimic fast playback.Note that while using this mode is very likely to hit many buffer underruns, so it could be a good option to hide any loading indicators on the UI.
This method allows for negative speeds as well.
-
-
Method Detail
-
values
public static TrickplayConfiguration.SpeedupMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TrickplayConfiguration.SpeedupMode c : TrickplayConfiguration.SpeedupMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TrickplayConfiguration.SpeedupMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-