I already asked a question previously about video playback with a direct URL to the video. We now noticed that the audio output on an iPhone 6 runs over the ringtone channel instead of the media channel. Is it possible to switch the output to the media channel somehow?
sorry for being not clear enough. I had some trouble describing it properly and I was hoping you had some similar issue already and would understand.
The thing is we are playing videos in the WebView and users are expecting sound even when the iPhone 6 is muted via the hardware switch. YouTube also plays sound even when the iPhone is muted, but the WebView playback in your Plugin is muted.
I am terribly sorry for late answer. I’ve had chance to look at your issue and I think I found solution.
I’ve added shouldUsePlaybackCategory property in order to control if audio should be played while phone is muted or not. I’ve sent updated package on your email. Please let me know if that worked out for you. If so, I’ll release plugin patch.
Thank you very much for the effort and the custom version of your plugin! We tested it, but unfortunately that change didn’t make any difference. The audio is still muted when the hardware switch is turned to mute.
We will test around a bit more and we will let you know if we find something.
Chris, are you sure you are using files I’ve sent you? You might have to completely rebuild your xcode project. Also make sure you are setting that property to true. I’ve tested in on my side and it’s giving effect you exactly want.