Re: Use WKSessionFile as Data for AVAudioPlayer?
Re: Use WKSessionFile as Data for AVAudioPlayer?
- Subject: Re: Use WKSessionFile as Data for AVAudioPlayer?
- From: Jens Alfke <email@hidden>
- Date: Wed, 08 Feb 2017 09:35:23 -0800
> On Feb 8, 2017, at 5:48 AM, Eric E. Dolecki <email@hidden> wrote:
>
> try self.player = AVAudioPlayer(contentsOf: file.fileURL!)
Why are you trying to load it into memory? You want to avoid that if possible with media data. Just initialize AVAudioPlayer with the URL itself and let it stream the data.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden