Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 AvPlayer 查找在线歌曲的总时长。我已经用谷歌搜索了它,但没有得到任何相关的答案。请建议我...
您可以像这样使用 AVPlayer 获得持续时间
DLog(@"%d",(int) AvPlayer.duration); _duration.text = [NSString stringWithFormat:@"%d:%02d", (int)p.duration / 60, (int)p.duration % 60, nil];