Received file from watch - how to play?
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