I am using the ionic framework to record audio using the Media object. It was working fine but with recent iOS updates now after recording something and releasing the Media object, the sound is disabled in my app until I crash it. No sound will play form any other part of the app and the + - volume controls on the side of the phone produce no volume overlay. I don't understand enough about iOS to know what's going on.
Any help is appreciated.
Related
I'm using Videogular2 in an Angular/Cordova/Ionic3 project, where I play mp3 audio live streams. All works good with mp3 and mp4, on browser and iOS simulator.
When the user Lock The Screen in iOS Device I expect that the audio continues to play in a background mode, but on IOS when the user Lock The Screen audio stop to play.
I've tested on XCODE 8 to set 'Capabilities' tab adding 'audio' parameter, I've added cordova-plugin-backgroundaudio to the project without success.
On iOS Simulator it works well, the problem occurs only on iOS Device.
Tested on iPhone 6 & iPad 3.
I'm using:
iOS 10.3.3
XCODE 8.3.3
Ionic 3.12.1
Videogular2 5.4.11
No one else used videogular2 on cordova/ionic?
In iOS app audio won't be playing in background when the device is locked. For that you have to enable the background mode for the app. I had faced the same issue in one of my application (I was using different audio plugin).
In order to enable background mode in iOS you can use below plugin
https://ionicframework.com/docs/native/background-mode/. When you start playing the audio you just need to call backgroundMode.enable() to keep it playing in background. When you leave the audio player page if want you can disable background mode to avoid unnecessarily keeping the background mode on by calling backgroundMode.disable().
Additionally you need to enable the background audio feature in xcode project settings as shown in below link.
https://koenig-media.raywenderlich.com/uploads/2016/09/BM-EnableAudioInBG.png
I'm developing a casual game for iOS with the Unity3D engine.
Whenever my game is launched, the background music being played on the device (e.g.: Spotify, iTunes, etc.) is ducked. This is undesired because my game does not have any fancy sound effects, I' like to allow my players to keep listening to their music in the 'normal' volume.
For testing purposes I created an empty project in Unity3D, ensuring the Override iPad Music setting is unchecked in the iOS Build Settings. This is enough to reproduce the audio ducking issue.
INFO:
Unity 5.4.x (also occurs with Unity 5.3.x)
Xcode 8
iOS 9 and iOS 10
Does anyone know how disable Unity3D's default audio ducking?
Add an Audio mixer to the output of your audio source. On the Audio mixer in the project tab, click the drop down then click on master. Finally increase the attenuation volume to a level your feel satisfied with. Then you are good to go.
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)
Is there a chance of possibility to create an iOS application which would record video from screen and save it on device?
I'm talking about recording everything that happens on screen not only within bounds of this application.
The app works in background and captures everything.
I'm playing a game - it is recording, I'm watching video - it is recording.
I'm 99 percent sure it's impossible, but maybe there's something I'm unaware of.
It is impossible without using the private API.
No, it is not possible.
You can try to install AirServer application on your MAC, then turn on mirroring on your iOS device and stream your screen to your MAC and use 3rd party applications to capture your screen on the MAC
Sometimes when calling navigator.device.capture.captureVideo() in my iOS PhoneGap application the picture camera comes up instead of the video camera. Any idea why this might be happening?
It seems like it may be a memory issue as it does happen after a TokBox WebRTC chat session quite frequently, but we have also experienced it at other times as well.
Using iOS 5 & 6, PhoneGap 2.1 and the OpenTok PhoneGap plugin.
When OpenTok runs, it opens up a view to capture video in order to stream it, putting the camera in video mode. When you then call navigator.device.capture.captureVideo, phonegap could be flipping the camera in their sdk but I dont know for sure.
Either way, this should be resolved with the latest OpenTok SDK and Cordova framework.