Shaka Player Embedded
Instance Methods | List of all members
<ShakaPlayerClient > Protocol Reference

#import <ShakaPlayer.h>

Inheritance diagram for <ShakaPlayerClient >:

Instance Methods

(void) - onPlayer:error:
 
(void) - onPlayer:bufferingChange:
 
(void) - onPlayerPlayingEvent:
 
(void) - onPlayerPauseEvent:
 
(void) - onPlayerEndedEvent:
 
(void) - onPlayerSeekingEvent:
 
(void) - onPlayerSeekedEvent:
 
(void) - onPlayerAttachMse:
 
(void) - onPlayerAttachSource:
 
(void) - onPlayerDetach:
 

Detailed Description

Defines an interface for Player events.

Definition at line 79 of file ShakaPlayer.h.

Method Documentation

§ onPlayer:bufferingChange:()

- (void ShakaPlayerClient) onPlayer: (ShakaPlayer *)  player
bufferingChange: (BOOL)  is_buffering 
optional

Called when the buffering state of the Player changes.

§ onPlayer:error:()

- (void ShakaPlayerClient) onPlayer: (ShakaPlayer *)  player
error: (ShakaPlayerError *)  error 
optional

Called when an asynchronous error occurs. This is called on the main thread and is only called when there isn't a block callback to give the error to.

§ onPlayerAttachMse:()

- (void ShakaPlayerClient) onPlayerAttachMse: (ShakaPlayer *)  player
optional

Called once MSE-based playback has started.

§ onPlayerAttachSource:()

- (void ShakaPlayerClient) onPlayerAttachSource: (ShakaPlayer *)  player
optional

Called once src= based playback has started. Once this is called, the avPlayer property will be valid and point to the AVPlayer instance being used.

§ onPlayerDetach:()

- (void ShakaPlayerClient) onPlayerDetach: (ShakaPlayer *)  player
optional

Called once playback is detached. If this was src= playback, the AVPlayer is no longer usable.

§ onPlayerEndedEvent:()

- (void ShakaPlayerClient) onPlayerEndedEvent: (ShakaPlayer *)  player
optional

Called when the video plays to the end of the content.

§ onPlayerPauseEvent:()

- (void ShakaPlayerClient) onPlayerPauseEvent: (ShakaPlayer *)  player
optional

Called when the video gets paused due to a call to Pause().

§ onPlayerPlayingEvent:()

- (void ShakaPlayerClient) onPlayerPlayingEvent: (ShakaPlayer *)  player
optional

Called when the video starts playing after startup or a call to Pause().

§ onPlayerSeekedEvent:()

- (void ShakaPlayerClient) onPlayerSeekedEvent: (ShakaPlayer *)  player
optional

Called when the video completes seeking. This happens once content is available and the playhead can move forward.

§ onPlayerSeekingEvent:()

- (void ShakaPlayerClient) onPlayerSeekingEvent: (ShakaPlayer *)  player
optional

Called when the video starts seeking. This may be called multiple times in a row due to Shaka Player repositioning the playhead.


The documentation for this protocol was generated from the following file: