Class MediaItem.LiveConfiguration.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Creates a new instance with default values.
    • Method Detail

      • setTargetOffsetMs

        @CanIgnoreReturnValue
        public MediaItem.LiveConfiguration.Builder setTargetOffsetMs​(long targetOffsetMs)
        Sets the target live offset, in milliseconds.

        See Player#getCurrentLiveOffset().

        Defaults to C.TIME_UNSET, indicating the media-defined default will be used.

      • setMinOffsetMs

        @CanIgnoreReturnValue
        public MediaItem.LiveConfiguration.Builder setMinOffsetMs​(long minOffsetMs)
        Sets the minimum allowed live offset, in milliseconds.

        See Player#getCurrentLiveOffset().

        Defaults to C.TIME_UNSET, indicating the media-defined default will be used.

      • setMaxOffsetMs

        @CanIgnoreReturnValue
        public MediaItem.LiveConfiguration.Builder setMaxOffsetMs​(long maxOffsetMs)
        Sets the maximum allowed live offset, in milliseconds.

        See Player#getCurrentLiveOffset().

        Defaults to C.TIME_UNSET, indicating the media-defined default will be used.

      • setMinPlaybackSpeed

        @CanIgnoreReturnValue
        public MediaItem.LiveConfiguration.Builder setMinPlaybackSpeed​(float minPlaybackSpeed)
        Sets the minimum playback speed.

        Defaults to C.RATE_UNSET, indicating the media-defined default will be used.

      • setMaxPlaybackSpeed

        @CanIgnoreReturnValue
        public MediaItem.LiveConfiguration.Builder setMaxPlaybackSpeed​(float maxPlaybackSpeed)
        Sets the maximum playback speed.

        Defaults to C.RATE_UNSET, indicating the media-defined default will be used.