How to get file size and current file size from NSURL for AVPlayer iOS4.0

前端 未结 3 1736
迷失自我
迷失自我 2020-12-20 08:13
self.player = [[AVPlayer playerWithURL:[NSURL URLWithString:@\"http://myurl.com/track.mp3\"]] retain];

I am trying make a UIProgressView for the ab

3条回答
  •  盖世英雄少女心
    2020-12-20 08:52

    @"loadedTimeRange" is a KVO value for the AVPlayerItem class. You can find its definition in the AVPlayerItem.h file in the

    @interface AVPlayerItem (AVPlayerItemPlayability)
    

    category definition.

提交回复
热议问题