Re: Use WKSessionFile as Data for AVAudioPlayer?
Re: Use WKSessionFile as Data for AVAudioPlayer?
- Subject: Re: Use WKSessionFile as Data for AVAudioPlayer?
- From: Eric Dolecki <email@hidden>
- Date: Wed, 08 Feb 2017 17:46:37 +0000 (UTC)
Ignore that comment. If love to know how to use the actual file though.
Get Outlook for iOS
On Wed, Feb 8, 2017 at 12:35 PM -0500, "Jens Alfke" <email@hidden> wrote:
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