• 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: 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


  • Follow-Ups:
    • Re: Use WKSessionFile as Data for AVAudioPlayer?
      • From: Eric Dolecki <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>)

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