JWAVPlayerAnalyticsDelegate
@protocol JWAVPlayerAnalyticsDelegate <NSObject>
Define properties that a delegate of a JWPlayerController object can implement to observe AVPlayer values.
-
Called when the player rate has changed.
Declaration
Objective-C
- (void)playbackRateDidChange:(CGFloat)rate;Parameters
rateAVPlayer rate.
-
Called when the player status has changed.
Declaration
Objective-C
- (void)playerStatusDidChange:(AVPlayerStatus)status;Parameters
statusThe value of
AVPlayerStatusthat indicates whether the receiver can be used for playback. -
Called when the player item has changed.
See
AVPlayerItemDeclaration
Objective-C
- (void)playerItemDidChange:(AVPlayerItem *_Nullable)item;Parameters
itemThe
AVPlayerItemthat will become the player’s current item. -
Called when the player error has changed.
Declaration
Objective-C
- (void)playerErrorDidChange:(NSError *_Nullable)error;Parameters
errorObject containing the error message under property localizedDescription.
-
Called when the player layer video rect has changed.
Declaration
Objective-C
- (void)playerLayerVideoRectDidChange:(CGRect)videoRect;Parameters
videoRectThe current size and position of the video image as displayed within the receiver’s bounds.
JWAVPlayerAnalyticsDelegate Protocol Reference