Player
@protocol Player
Playback analytics related to the player
-
Returns the total amount of buffered content, in seconds.
returns: the total amount of buffered content, in seconds
Declaration
Objective-C
- (double)bufferedDuration;
-
Returns an array of resoloutions available in the playlist note: This function will make a seperate request for the Master playlist to return all the availableresoloutions. This request is only done once you call this function and only on the first time you call it for that contnet. Every subsiquent call on the same content does not requst the playlist again.
returns: an array of resoloutions available in the playlist, or nil if unknown
Declaration
Objective-C
- (NSArray<NSValue *> *_Nullable)availableResoloutions;
-
Returns the resoloution of the content being played
returns: the Resoloution of the content being played as a CGSzie e.g CGSize(width: 1920, height: 1080) or CGSizeZero if Uknown or Audio only.
Declaration
Objective-C
- (CGSize)selectedResoloution;
-
Returns the accumulated duration, in seconds, until the player item is ready to play.
returns: the accumulated duration, in seconds, until the player item is ready to play or -1 if uknown
Declaration
Objective-C
- (double)startUpTime;
-
Returns the total number of playback stalls encountered.
returns: total number of playback stalls encountered.
Declaration
Objective-C
- (NSInteger)numberOfStalls;
-
Returns the playback type can be live, VOD, or from a file. If nil is returned the playback type is unknown.
returns: the playback type can be live, VOD, or from a file. If nil is returned the playback type is unknown.
Declaration
Objective-C
- (NSString *_Nullable)playbackType;
-
Returns the date and time at which playback began for this event.
returns: the date and time at which playback began for this event.
Declaration
Objective-C
- (NSDate *_Nullable)playbackStartDate;
-
Returns the offset, in seconds, in the playlist where the last uninterrupted period of playback began.
returns: the offset, in seconds, in the playlist where the last uninterrupted period of playback began.
Declaration
Objective-C
- (NSTimeInterval)playbackStartOffset;