Enum TrickplayConfiguration.SpeedupMode

    • 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 in PlayerController.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 name
        NullPointerException - if the argument is null