Class MediaItem.LiveConfiguration

  • Enclosing class:
    MediaItem

    public static final class MediaItem.LiveConfiguration
    extends Object
    Live playback configuration.
    • Field Detail

      • targetOffsetMs

        public final long targetOffsetMs
        Target offset from the live edge, in milliseconds, or C.TIME_UNSET to use the media-defined default.
      • minOffsetMs

        public final long minOffsetMs
        The minimum allowed offset from the live edge, in milliseconds, or C.TIME_UNSET to use the media-defined default.
      • maxOffsetMs

        public final long maxOffsetMs
        The maximum allowed offset from the live edge, in milliseconds, or C.TIME_UNSET to use the media-defined default.
      • minPlaybackSpeed

        public final float minPlaybackSpeed
        Minimum factor by which playback can be sped up, or C.RATE_UNSET to use the media-defined default.
      • maxPlaybackSpeed

        public final float maxPlaybackSpeed
        Maximum factor by which playback can be sped up, or C.RATE_UNSET to use the media-defined default.
    • Constructor Detail

      • LiveConfiguration

        public LiveConfiguration​(long targetOffsetMs,
                                 long minOffsetMs,
                                 long maxOffsetMs,
                                 float minPlaybackSpeed,
                                 float maxPlaybackSpeed)
        Creates a live playback configuration.
        Parameters:
        targetOffsetMs - Target live offset, in milliseconds, or C.TIME_UNSET to use the media-defined default.
        minOffsetMs - The minimum allowed live offset, in milliseconds, or C.TIME_UNSET to use the media-defined default.
        maxOffsetMs - The maximum allowed live offset, in milliseconds, or C.TIME_UNSET to use the media-defined default.
        minPlaybackSpeed - Minimum playback speed, or C.RATE_UNSET to use the media-defined default.
        maxPlaybackSpeed - Maximum playback speed, or C.RATE_UNSET to use the media-defined default.
    • Method Detail

      • equals

        public boolean equals​(@Nullable
                              Object obj)
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object