简体   繁体   English

Objective-C, iPhone 如何依次播放不同 URL 的音频文件?

[英]Objective-C, iPhone How play audio files from different URLs in sequence?

I need to play 3 audio files in sequence, from 3 different URLs in my iPhone app.我需要从我的 iPhone 应用程序中的 3 个不同 URL 依次播放 3 个音频文件。

How can I do this?我怎样才能做到这一点?

The AVQueuePlayer does exactly this. AVQueuePlayer正是这样做的。 Create an array of AVPlayerItem objects, and pass in the array when you create the AVQueuePlayer .创建一个AVPlayerItem对象数组,并在创建AVQueuePlayer时传入该数组。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM