Sign in to follow this  
farhan

Audio Cannot Mute if load video file and use Hardware Mute on IOS?

Recommended Posts

Anyone knows why when I load a video file, for whatever reason, I cannot mute the audio using the hardware mute on Ipad IOS 8 device?

But if I remove the video, hardware mute works fine.

Share this post


Link to post
Share on other sites

Nope, IOS 8 and 9 are just too old. In addition, there is no way that I know of to get the hardware mute status on iPhone for html/canvas games unless you are making native apps/games. Perhaps Apple can answer this question BUT they have addressed this issue on newer devices/IOS. People who still uses IOS 8 and 9 have to live with it 😛 It is not the end of the world just because you cannot mute it using hardware mute. Right now, it is already at IOS 11 which works great, and in the next year or 2, IOS 8 and/or 9 will be gone by then. I can't wait 😛

Share this post


Link to post
Share on other sites
On 9/12/2018 at 5:58 AM, antifuzz said:

@farhan Did you find any solution for this? We're having the same issue where the mute switch stops being respected as soon as we play a video.

If you are talking about latest IOS, the only solution is to separate audio track from the video. Make sure the video has no audio track and then just play audio and video at the same time. And for checking on end video, use on audio end to continue because for some reason on IOS devices, it cannot detect when the video is over when the video has no audio track, at least the is an issue I encountered.

Share this post


Link to post
Share on other sites

Thanks @farhan

Actually we're getting the issue on iOS11 and 12. We're not testing on older versions. 

I'm not worried about the video itself not respecting the ringer switch as that's expected behaviour. The problem is that even after the video has finished playing, all other sounds that we play disrespect the ringer switch. It's like playing a video breaks something that doesn't get reset until you quit and relaunch the app.

You say that iOS11 works great... but it's not working at all for us when a video plays. Is there anything special you're doing to get it to work?

Share this post


Link to post
Share on other sites
On 10/8/2018 at 12:20 PM, antifuzz said:

Thanks @farhan

Actually we're getting the issue on iOS11 and 12. We're not testing on older versions. 

I'm not worried about the video itself not respecting the ringer switch as that's expected behaviour. The problem is that even after the video has finished playing, all other sounds that we play disrespect the ringer switch. It's like playing a video breaks something that doesn't get reset until you quit and relaunch the app.

You say that iOS11 works great... but it's not working at all for us when a video plays. Is there anything special you're doing to get it to work?

Not sure what the issue you are having but, the only thing I did was separating audio track from video and play them separately. The video file won't have audio track. And then, I check on audio ends to continue and do other stuff since when the video has no audio and it will never trigger on the on video end event.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.