Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6087] Audio not working when device is muted

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2019-01-29T17:24:56.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsios
Reportermark@grandora.net
AssigneeShak Hossain
Created2019-01-03T06:45:29.000+0000
Updated2019-01-29T17:24:57.000+0000

Description

Audio is not working when device is muted. Can be reproduced with simple Titanium.UI.Webview script. Please see below. var content_webview = Titanium.UI.createWebView({ html: '', scalesPageToFit: false, disableBounce:true, hideLoadIndicator: true }); Audio on other apps works just fine when device is muted but not on apps built on Appcelerator. This is is definitely a bug.

Attachments

FileDateSize
Simulator Screen Shot - iPad Air 2 - 2019-01-21 at 11.02.54.png2019-01-21T09:46:53.000+0000247395
TestWebViewApp.zip2019-01-10T13:07:55.000+000064196

Comments

  1. Motiur Rahman 2019-01-03

    I think It's normal behavior when the device is muted by the side button, audio will be muted as well. And I can enable, disable sound using that button. [~vijaysingh] am I right? Here is the full code
       var win = Ti.UI.createWindow({
               backgroundColor: '#fff',
               //layout: "vertical"
           });
       
           var content_webview = Ti.UI.createWebView({
               html: '<iframe width="560" height="315" src="https://www.youtube.com/embed/H6k8cn6Nor4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>',
               scalesPageToFit: false,
               disableBounce: true,
               hideLoadIndicator: true
           });
       
           win.add(content_webview);
       
       win.open();
       
    *Test Env:* Ti SDK: 7.5.0.GA Device: iPhone 5s v 12.1.2
  2. Vijay Singh 2019-01-04

    [~morahman] Are you talking about ringer button ? Ringer button do not have to do anything with media volume. I tried on iPhone 6 plus using Xcode, it is working fine. I mean whether we on or off ringer button it is not affecting audio. Can you try with some other device?
  3. mark@grandora.net 2019-01-05

    Hello, sorry for the late reply. People using our apps are also using apps like facebook, youtube, vimeo etc.. audio on these apps works even if device is muted. People are thinking that our apps is bugged. People are using iPad BTW, device is muted using the settings area is iOS. Thanks.
  4. Motiur Rahman 2019-01-07

    [~mark@grandora.net], Can you share your device model and version? Also, try with some other device then let us know. Thanks!
  5. mark@grandora.net 2019-01-09

    Hello, I have here iPad Air 2 model number MNVP2CL/A and iOS version 12.1.1(16C50). We have reports that even with latest iPad this issue is happening. - Mark
  6. Vijay Singh 2019-01-10

    Hi Mark, It seems this is a normal behaviour with UIWebView, which we are using till SDK 7.5.x for implementing TiUIWebView. Same can be seen in attached native iOS app. In WKWebView this behaviour has been changed (Ringer button is not affecting volume). We have moved to WKWebView for implementing TiUIWebView from SDK 8.0.0+, which is planned to release soon. So from 8.0.0+ it will automatically solved. You can use [Ti.WKWebView](https://github.com/appcelerator-modules/Ti.WKWebView) module which is based on WKWebView. Thanks!
  7. Rakhi Mitro 2019-01-13

    [~mark@grandora.net], Do you manage to try using Ti.WKWebView module as suggested by Vijay? Thanks
  8. Rakhi Mitro 2019-01-17

    Hello, We haven't heard back from you since our last response. I thought I’d check in to see how things are progressing on your end. Did you manage to try Ti.WKWebView module?
  9. mark@grandora.net 2019-01-17

    My apologies for not responding immediately, I'm traveling as of the moment. I'll check on it this weekend. I'll keep you guys posted.
  10. Rakhi Mitro 2019-01-20

    [~mark@grandora.net],Thanks for your feedback. Will be waiting for your reply.
  11. mark@grandora.net 2019-01-21

    Hello, it looks like I can't check this yet if it's working on SDK 8 because I got so many errors when using SDK 8. I'm having export problems. Please see attached screenshot. !Simulator Screen Shot - iPad Air 2 - 2019-01-21 at 11.02.54.png|thumbnail!
  12. Rakhi Mitro 2019-01-22

    Hello [~mark@grandora.net], Thanks for your feedback. Did you experience same error using Ti.WKWebView module on 7.5.0.GA?
  13. Rakhi Mitro 2019-01-29

    Hello,
 We haven't heard back from you since our last response. I am just following up to check the status of this case and if you need further help on it. 

JSON Source