PlayerEvent

@objc
public class PlayerEvent : PKEvent

PlayerEvent is a class used to reflect player events.

  • Undocumented

    Declaration

    Swift

    @objc
    public static let allEventTypes: [PlayerEvent.Type]
  • Sent when enough data is available that the media can be played, at least for a couple of frames.

    Declaration

    Swift

    @objc
    public static let canPlay: PlayerEvent.Type
  • The metadata has loaded or changed, indicating a change in duration of the media. This is sent, for example, when the media has loaded enough that the duration is known.

    Declaration

    Swift

    @objc
    public static let durationChanged: PlayerEvent.Type
  • Sent when playback stopped.

    Declaration

    Swift

    @objc
    public static let stopped: PlayerEvent.Type
  • Sent when playback completes.

    Declaration

    Swift

    @objc
    public static let ended: PlayerEvent.Type
  • The media’s metadata has finished loading; all attributes now contain as much useful information as they’re going to.

    Declaration

    Swift

    @objc
    public static let loadedMetadata: PlayerEvent.Type
  • Sent when playback of the media starts after having been paused; that is, when playback is resumed after a prior pause event.

    Declaration

    Swift

    @objc
    public static let play: PlayerEvent.Type
  • Sent when playback is paused.

    Declaration

    Swift

    @objc
    public static let pause: PlayerEvent.Type
  • Sent when the media begins to play (either for the first time, after having been paused, or after ending and then restarting).

    Declaration

    Swift

    @objc
    public static let playing: PlayerEvent.Type
  • Sent when a seek operation begins.

    Declaration

    Swift

    @objc
    public static let seeking: PlayerEvent.Type
  • Sent when a seek operation completes.

    Declaration

    Swift

    @objc
    public static let seeked: PlayerEvent.Type
  • Sent when tracks available.

    Declaration

    Swift

    @objc
    public static let tracksAvailable: PlayerEvent.Type
  • Sent when text track has been changed.

    Declaration

    Swift

    @objc
    public static let textTrackChanged: PlayerEvent.Type
  • Sent when audio track has been changed.

    Declaration

    Swift

    @objc
    public static let audioTrackChanged: PlayerEvent.Type
  • Sent when video track has been changed.

    Declaration

    Swift

    @objc
    public static let videoTrackChanged: PlayerEvent.Type
  • Sent when Playback Params Updated.

    Declaration

    Swift

    @objc
    public static let playbackInfo: PlayerEvent.Type
  • Sent when player state is changed.

    Declaration

    Swift

    @objc
    public static let stateChanged: PlayerEvent.Type
  • Sent when timed metadata is available.

    Declaration

    Swift

    @objc
    public static let timedMetadata: PlayerEvent.Type
  • Sent when source was selected.

    Declaration

    Swift

    @objc
    public static let sourceSelected: PlayerEvent.Type
  • Sent when loaded time ranges was changed, loaded time ranges represent the buffered content. could be used to show amount buffered on the playhead UI.

    Declaration

    Swift

    @objc
    public static let loadedTimeRanges: PlayerEvent.Type
  • Sent when an error occurs in the player that the playback can recover from.

    Declaration

    Swift

    @objc
    public static let error: PlayerEvent.Type
  • Sent when a plugin error occurs.

    Declaration

    Swift

    @objc
    public static let pluginError: PlayerEvent.Type
  • Sent when an error log event received from player (non fatal errors).

    Declaration

    Swift

    @objc
    public static let errorLog: PlayerEvent.Type
  • Undocumented

    Declaration

    Swift

    public class CanPlay : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class DurationChanged : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class Stopped : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class Ended : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class LoadedMetadata : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class Play : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class Pause : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class Playing : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class Seeking : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class Seeked : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class SourceSelected : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class Error : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class PluginError : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class ErrorLog : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class TimedMetadata : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class TracksAvailable : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class TextTrackChanged : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class AudioTrackChanged : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class VideoTrackChanged : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class PlaybackInfo : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class StateChanged : PlayerEvent
  • Undocumented

    Declaration

    Swift

    public class LoadedTimeRanges : PlayerEvent