简体   繁体   中英

Is the sound coming from the iphone or the watch?

I have two simulated apple devices. One is an iphone the other is simulated watch connected to the same phone.

Is there anyway to indicate or determine if a played sound is coming from the simulated iphone or the watch?

No. It is not possible to play sounds with WatchKit on the Apple Watch.

This is in Apple's Watchkit FAQ in their Developer Forums.

You could trigger a sound to play on the iPhone from a button press on the Watch but you can't play a sound directly from the Watch.

您不能仅在播放声音时记录输出以查看播放的声音吗?

You could try an audio hijack application to capture the audio of a particular app. "Audio Hijack" is one, there are many.

The accepted answer is no longer true. You can use WKInterfaceInlineMovie to play sound on the watch using a button tap on the watch, for example. For a fuller explanation, see my response to this question:

Is there REALLY no way to play short sounds on Apple watch without a UI?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM