DurationChangeEvent

@objc(THEOplayerDurationChangeEvent)
public class DurationChangeEvent : PlayerEvent

Fired when PlayerEventTypes.DURATION_CHANGE occurs for the THEOplayer.

Remark

  • One of the cases where the duration is updated, is when you set a new source.
  • The new duration of the content, in seconds.

    Declaration

    Swift

    public private(set) var duration: Double? { get }