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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to