VolumeChangeEvent

@objc(THEOplayerVolumeChangeEvent)
public class VolumeChangeEvent : CurrentTimeEvent

Fired when PlayerEventTypes.VOLUME_CHANGE occurs for the THEOplayer.

  • The new value, between 0 and 1, of the player’s volume.

    Declaration

    Swift

    @objc
    public private(set) var volume: Float { get }
  • The new value, between 0 and 1, of the device’s volume.

    Declaration

    Swift

    @objc
    public let deviceVolume: Float