QML MediaPlayer sound with turned on silent mode on iOS - ios

I'm using QML MediaPlayer with VideoRole audioRole. And currently, if user tirning on silent mode, audio of video became muted. How I can avoid that?

Related

How can I disable bluetooth earphones from automatic playing audio as soon as they are connected?

I'm building an audio application for iOS in Swift.
Every time I connect my bluetooth earphones, it automatically starts playing music from my Music (iTunes) app. I'm on iOS 14.4.
Is it possible to disable this behavior programatically? Or this behavior is preempted from my specific bluetooth earphones?
Is it related to AVAudioSession.RouteSharingPolicy?

Playing sound on silent mode when phone is on stand-by

Is it possible to play a sound on an iPhone with push notification while the phone is on silent mode and stand-by? On either React Native or Swift.

Qt Quick iOS: How to keep audio playing while app is in background

I’m developing a WebRadio application in qml for iOS devices with Qt 5.2. To play the audio stream I use the MediaPlayer type which works fine.
However, in iOS, when I switch to another application or go back to home (in other words when the app go to background) the sound stops, but I want it to continue playing.
I know how to do it in objective-C by activating the AVAudioSession and add the audio background mode the info.plist file.
But I really don't know how to do it in qml.
Can someone help ?
You can add the audio background mode to the info.plist file or via the capabilities tab in Xcode.

Native iOS music player pauses when playing HTML5 audio

My Google-Fu has failed me.
Is it possible for the native iOS music player to NOT pause when playing a sound from within an HTML5 web app? I know native apps don't have this problem but am struggling with HTML5.
(Using iOS6).
Please, see this topic: iPod - Let the native music app to play sound in background. I've used the same approach to allow iPod music playback while game playing with embedded ambients and sounds.

How to continue play html5 audio when screen locked?

I have an audio element in the UIWebView, but when I lock the screen, the audio will be paused. How can I continue to play it when the screen locked?
If you are talking about iOS devices, then as long as you do not bookmark the site to the home screen and Safari is open and playing the audio, it will continue to play when the screen locks. Only if you try to multi-task will it shut off the sound on your page.
You must ensure that background audio is enabled in your iOS app. You can find a sample project here https://github.com/jsagorin/iOSBackgroundAudio

Resources