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
rate
AVPlayer rate.
-
Called when the player status has changed.
Declaration
Objective-C
- (void)playerStatusDidChange:(AVPlayerStatus)status;
Parameters
status
The value of
AVPlayerStatus
that indicates whether the receiver can be used for playback. -
Called when the player item has changed.
See
AVPlayerItem
Declaration
Objective-C
- (void)playerItemDidChange:(AVPlayerItem *_Nullable)item;
Parameters
item
The
AVPlayerItem
that will become the player’s current item. -
Called when the player error has changed.
Declaration
Objective-C
- (void)playerErrorDidChange:(NSError *_Nullable)error;
Parameters
error
Object containing the error message under property localizedDescription.
-
Called when the player layer video rect has changed.
Declaration
Objective-C
- (void)playerLayerVideoRectDidChange:(CGRect)videoRect;
Parameters
videoRect
The current size and position of the video image as displayed within the receiver’s bounds.