看看AVPlayerItemAccessLogEvent类。
您可以通过`访问
self.aPlayer.currentItem.accessLog
AVPlayerItemAccessLog *accesslog = self.aPlayer.currentItem.accessLog;
NSArray *events = [accesslog events];
AVPlayerItemAccessLogEvent *event = [events objectAtIndex:0];
NSLog(@"Number of bytes received %@", [event numberOfBytesTransferred]);
您有 Accesslog,它为您提供有关数据属性的详细信息
numberOfSegmentsDownloaded property
numberOfMediaRequests property
playbackStartDate property
URI property
serverAddress property
numberOfServerAddressChanges property
playbackSessionID property
playbackStartOffset property
segmentsDownloadedDuration property
durationWatched property
numberOfStalls property
numberOfBytesTransferred property
indicatedBitrate property
observedBitrate property
numberOfDroppedVideoFrames property
IMO,这是您唯一的选择,但这也有其缺陷,尤其是在寻求等时。