Player Events
- 
                  
                  The types of Player events. See moreDeclarationSwift public struct PlayerEventTypes
- 
                  
                  Fired when See morePlayerEventTypes.SOURCE_CHANGEoccurs for theTHEOplayer.DeclarationSwift public class SourceChangeEvent : PlayerEvent
- 
                  
                  The base event for all events that change the See moreReadyStateof the player.DeclarationSwift public class ReadyStateEvent : CurrentTimeEvent
- 
                  
                  Fired when PlayerEventTypes.PLAYoccurs for theTHEOplayer.Remark - The player is no longer paused.
- Triggered when play() has returned or when autoplay has caused playback to begin.
 DeclarationSwift public class PlayEvent : CurrentTimeEvent
- 
                  
                  Fired when PlayerEventTypes.PLAYINGoccurs for theTHEOplayer.Remark - Playback is ready to start after having been paused or delayed due to lack of media data.
- Even if this event fires, the player might still not be potentially playing, e.g. if the player is paused for user interaction or paused for in-band content.
 DeclarationSwift public class PlayingEvent : CurrentTimeEvent
- 
                  
                  Fired when PlayerEventTypes.PAUSEoccurs for theTHEOplayer.DeclarationSwift public class PauseEvent : CurrentTimeEvent
- 
                  
                  Fired when PlayerEventTypes.PROGRESSoccurs for theTHEOplayer.Remark - Triggered when the player is fetching media data.
- For progress in time, please see TimeUpdateEvent.
 DeclarationSwift public class ProgressEvent : CurrentTimeEvent
- 
                  
                  Fired when PlayerEventTypes.DURATION_CHANGEoccurs for theTHEOplayer.See moreRemark - One of the cases where the duration is updated, is when you set a new source.
 DeclarationSwift public class DurationChangeEvent : PlayerEvent
- 
                  
                  Fired when PlayerEventTypes.SEEKINGoccurs for theTHEOplayer.Remark - This event means that the player is currently seeking, thus THEOplayer.seekingwill return true.
 DeclarationSwift public class SeekingEvent : CurrentTimeEvent
- This event means that the player is currently seeking, thus 
- 
                  
                  Fired when PlayerEventTypes.SEEKEDoccurs for theTHEOplayer.Remark - This event means that the player has completed seeking, thus THEOplayer.seekingwill return false.
 DeclarationSwift public class SeekedEvent : CurrentTimeEvent
- This event means that the player has completed seeking, thus 
- 
                  
                  Fired when PlayerEventTypes.WAITINGoccurs for theTHEOplayer.Remark - Playback has stopped because the next frame is not available, but the user agent expects that frame to become available in due course.
- ReadyStateis equal to or less than HAVE_CURRENT_DATA, and- THEOplayer.pausedis false.
 DeclarationSwift public class WaitingEvent : CurrentTimeEvent
- 
                  
                  Fired when PlayerEventTypes.TIME_UPDATEoccurs for theTHEOplayer.See moreRemark - Periodically thrown during playback to indicate that the currentTime property is changing to indicate the new playback position.
- Will be kept up-to-date in case of discontinuous playback, e.g. because of a seek.
 DeclarationSwift public class TimeUpdateEvent : CurrentTimeEvent
- 
                  
                  Fired when PlayerEventTypes.ENDEDoccurs for theTHEOplayer.Remark - currentTime has reached the end of the current source.
 DeclarationSwift public class EndedEvent : CurrentTimeEvent
- 
                  
                  Fired when PlayerEventTypes.RATE_CHANGEoccurs for theTHEOplayer.See moreRemark - The effective playback rate changes, which is the speed at which the media resource plays, as a multiple of its intrinsic speed.
 DeclarationSwift public class RateChangeEvent : CurrentTimeEvent
- 
                  
                  Fired when PlayerEventTypes.READY_STATE_CHANGEoccurs for theTHEOplayer.Remark - For all possible values, see ReadyState.
 DeclarationSwift public class ReadyStateChangeEvent : ReadyStateEvent
- For all possible values, see 
- 
                  
                  Fired when PlayerEventTypes.LOADED_META_DATAoccurs for theTHEOplayer.Remark - The player has just determined the duration and dimensions of the media resource.
- Thrown the first time the readyState property goes from 0: HAVE_NOTHING to 1: HAVE_METADATA.
- Additionally, the text tracks are ready.
 DeclarationSwift public class LoadedMetaDataEvent : ReadyStateEvent
- 
                  
                  Fired when PlayerEventTypes.LOADED_DATAoccurs for theTHEOplayer.Remark - The player is able to render the content for the first time, from the current position.
- Thrown the first time the readyState property goes from 1: HAVE_METADATA to 2: HAVE_CURRENT_DATA.
 DeclarationSwift public class LoadedDataEvent : ReadyStateEvent
- 
                  
                  Fired when PlayerEventTypes.CAN_PLAYoccurs for theTHEOplayer.Remark - The player already has some data and can play, with a readyState property value of 3: HAVE_FUTURE_DATA.
- The player does not have sufficient future data to guarantee a smooth playthrough.
- With the current playback rate, until the end of the stream, the player might have to stop for further buffering of the media data.
- Fired to indicate that the player can now continue playback, usually after a ‘waiting’ event.
 DeclarationSwift public class CanPlayEvent : ReadyStateEvent
- 
                  
                  Fired when PlayerEventTypes.CAN_PLAY_THROUGHoccurs for theTHEOplayer.Remark - The player has sufficient data to offer a smooth playthrough.
- With the current playback rate, until the end of the stream, the player won’t have to stop for further buffering of the media data.
- Fired to indicate that the player can now continue playback uninterrupted with a readyState property value of 4: HAVE_ENOUGH_DATA.
 DeclarationSwift public class CanPlayThroughEvent : ReadyStateEvent
- 
                  
                  Fired when See morePlayerEventTypes.ERRORoccurs for theTHEOplayer.DeclarationSwift public class ErrorEvent : PlayerEvent
- 
                  
                  Fired when PlayerEventTypes.PRESENTATION_MODE_CHANGEoccurs for theTHEOplayer.See moreRemark - Can be triggered when switching from inline to fullscreen, or the other way around.
 DeclarationSwift public class PresentationModeChangeEvent : PlayerEvent
- 
                  
                  Fired when See morePlayerEventTypes.VOLUME_CHANGEoccurs for theTHEOplayer.DeclarationSwift public class VolumeChangeEvent : CurrentTimeEvent
- 
                  
                  Fired when PlayerEventTypes.RESIZEoccurs for theTHEOplayer.Remark - The playing video has been resized.
 DeclarationSwift public class ResizeEvent : PlayerEvent
- 
                  
                  Fired when PlayerEventTypes.LOAD_STARToccurs for theTHEOplayer.Remark - The player begins looking for media data, as part of the resource selection algorithm.
 DeclarationSwift public class LoadStartEvent : CurrentTimeEvent
- 
                  
                  Fired when PlayerEventTypes.DESTROYoccurs for theTHEOplayer.Remark - After receiving this event, the player should not be used anymore.
 DeclarationSwift public class DestroyEvent : PlayerEvent
 Player Events  Reference
      Player Events  Reference