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.
我正在使用mattgallagher 的AudioStreamer将 MP3 从服务器流式传输到 iPhone 应用程序。我知道如何获取播放内容的进度,但是如何获取媒体的总时长?
您需要使用durationAudioStreamer 对象的属性
duration
AudioStreamer *audio = [[AudioStreamer alloc] init]; NSLog(@"%f", audio.duration);