• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Use WKSessionFile as Data for AVAudioPlayer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Use WKSessionFile as Data for AVAudioPlayer? (From: "Eric E. Dolecki" <email@hidden>)
 >Re: Use WKSessionFile as Data for AVAudioPlayer? (From: Jens Alfke <email@hidden>)
 >Re: Use WKSessionFile as Data for AVAudioPlayer? (From: "Eric E. Dolecki" <email@hidden>)
 >Re: Use WKSessionFile as Data for AVAudioPlayer? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Use WKSessionFile as Data for AVAudioPlayer?
  • Next by Date: What generates NSURLErrorUnsupportedURL?
  • Previous by thread: Re: Use WKSessionFile as Data for AVAudioPlayer?
  • Next by thread: Mobile Cross Platform Solutions
  • Index(es):
    • Date
    • Thread