GenericPlayerEventListenerClass
@interface GenericPlayerEventListenerClass : NSObject
Event listener for SmartLib Generic
-
This method could be used to verify if the player is playing.
Declaration
Objective-C
+ (BOOL)isPlaying;Return Value
true or false
-
This method could be used to verify if the player is playing.
Declaration
Objective-C
+ (BOOL)isBuffering;Return Value
true or false
-
This method could be used to verify if the player is playing.
Declaration
Objective-C
+ (BOOL)isStarted;Return Value
true or false
-
Notify that the session has started
Note: To call when the first image is displayed
Declaration
Objective-C
+ (void)onSessionStart; -
Notify that the player did seek
Declaration
Objective-C
+ (void)onSeek:(double)begin end:(double)end;Parameters
beginposition before seek in milliseconds
endposition where the player did seek in milliseconds
-
Notify that the player did start stalling/buffering
Declaration
Objective-C
+ (void)onStallStart; -
Notify that the player did end stalling/buffering
Declaration
Objective-C
+ (void)onStallEnd:(BOOL)isPlaying;Parameters
isPlayingThe player is playing when the buffering ends (i.e user did not pause the playback during buffering)
-
Notify that the player did change the current layer
Declaration
Objective-C
+ (void)onLayerSwitch:(int)bitrate;Parameters
bitratebitrate in kbps
-
Notify that the player has been paused
Declaration
Objective-C
+ (void)onSessionPause; -
Notify that the player has been resumed
Declaration
Objective-C
+ (void)onSessionResume; -
Undocumented
Declaration
Objective-C
+ (void)addPlayerAdapter:(nullable GenericPlayerAdapter *)adapter; -
Undocumented
Declaration
Objective-C
+ (void)removePlayerAdapter:(nullable GenericPlayerAdapter *)adapter;
Install in Dash
GenericPlayerEventListenerClass Class Reference