• 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
Received file from watch - how to play?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Received file from watch - how to play?


  • Subject: Received file from watch - how to play?
  • From: "Eric E. Dolecki" <email@hidden>
  • Date: Tue, 07 Feb 2017 21:21:59 +0000

In my ViewController on the iOS side:

func session(_ session: WCSession, didReceive file: WCSessionFile)

I am getting the file (which is a wav file) - but I'm not sure how to
actually play it in iOS when I get it. I've tried file.fileURL!.path and
creating a NSURL from that to instantiate a AVAudioPlayer with it, but it's
not working.

I read where you need to move the file local to the phone and then use it,
but I have not been able to successfully do that either.

Any tips?
_______________________________________________

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


  • Prev by Date: App Groups saveURL problem
  • Next by Date: Use WKSessionFile as Data for AVAudioPlayer?
  • Previous by thread: App Groups saveURL problem
  • Next by thread: Use WKSessionFile as Data for AVAudioPlayer?
  • Index(es):
    • Date
    • Thread