How to check apple watch mute status? - ios

I am working on application where i need to check apple watch mute button is On or off.
In iPhone we can detect it using AudioToolbox framework but in watch OS there is no framework with name AudioToolbox.
So my question is how could we detect apple watch mute button is On or off .

After searching around i concluded that currently there is no way to check apple watch mute status.

Related

Play sound on Apple Watch from iPhone

Can't find a clear answer on the internet.
I want to make an iOS App, which can play a sound on the Apple Watch, like you can play a sound on your iPhone from the Apple Watch (by swiping up from the watch face.)
Anyone knows if thats possible?
Cheers!
Matthijs

App Interruption - Siri Fails To Hear Human Voice

In my team's iOS app we have a bug when Siri is invoked while our app is running. Siri pops up and the waveform is shown very briefly and appears not to detect one's voice as the waveform remains very flat. Quickly thereafter it begins to list the things you can ask Siri.
We are using Xcode 6.3, tested on an iPad Mini with iOS 8.3 as well as an iPhone 5 with iOS 8.3.
The app never uses the microphone or queries any of the device audio inputs so I can't see this problem attributed to our app using the microphone directly. It does play looping ambient music and has sound effects.
Is there anything specific we should be calling an an interruption to ensure that Siri will work properly? Has anyone experienced similar issues?
This is most likely not related to your app. The iOS SDK doesn't provide a Siri API that could lead to this kind of events.
You may try to pause any ambient music/sounds effects whenever the app goes in background. (in AppDelegate.m)

Playing a sound through iPhone from Apple Watch

As we get closer to the launch of the Apple Watch I am currently preparing an app for it. However what I want to do is be able to play a sound from the Apple Watch such as a song. Searching around I can see you need to play it through the iPhone but I can't figure out how to actually do it.
Any help will be greatly appreciated!
Objective-C is my preferred language however I can work with Swift.
Apple watch can play music , It is not currently possible to play sounds using the latest build of WatchKit.

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.
cant you just log an output when the sound is played to see which one its played from ?
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?

Airplay with photos

I looked up the official documents for airplay, found the airplay can only support audio and video. But beside that, the native photos app can airplay photos. So is there any methods to airplay photos? BTW, I know the "mirroring" mode can do this job: I can detect 2 screens in my code and present a different screen to the iOS device's in this mode. However, the "mirroring" mode only exists in iPad 2, new iPad and iPhone 4S...
I found solution here
http://livevision.us/wordpress/2011/02/16/airplay-without-private-api/
and
How to find the IP-address of the active AirPlay device?
I could send some UIImage to apple TV.
but I don't know if apple allows using these Unoffical Airplay protocol.
It is documented on Apple's site. When the user enables airplay mirroring, your app will find two UIScreen:s. It's quite simple.
Here's a sample app http://developer.apple.com/library/ios/samplecode/GLAirplay/Introduction/Intro.html

Resources