[ 
https://issues.apache.org/jira/browse/CB-7708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14162718#comment-14162718
 ] 

Shazron Abdullah commented on CB-7708:
--------------------------------------

Definitely can. If you add your code in a plugin (put the code in the 
pluginInitialize method), with the config.xml param onload="true" it should be 
enabled. Of course since it will be a plugin you can set the audio session 
however you want even controlling it from JavaScript, but that's outside the 
scope of this issue.

> HTML5 video playback in iOS is muted by ringer switch
> -----------------------------------------------------
>
>                 Key: CB-7708
>                 URL: https://issues.apache.org/jira/browse/CB-7708
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 3.5.0
>         Environment: iOS 7, iOS 8
>            Reporter: Sterling Nelson
>            Priority: Minor
>
> We've got a Cordova based iOS app (targeted for iOS7 and 8) that plays back a 
> fair amount of media content as HTML5 video.  We've been having issues with 
> video not playing sound for some users.  I suspect some of the issues are 
> related to device ringers being set to mute (which does not seem to affect 
> video playback in Safari), and would like to cross these cases out.  From my 
> perspective it'd be nice if behavior of the HTML5 video element in iOS 
> WebViews matched its Safari behavior.  
> I managed to get the behavior I would like by fiddling with the Cordova 
> default view controller, but I would rather not modify Cordova's controllers 
> in place (in part because it seems wrong, but mostly because we'd like to be 
> able to re-build our Cordova app without having to worry about modifying 
> library files.)
> Is there currently something I should configure to have Cordova just do this 
> for me? I see that the Media plugin does something similar to this, but 
> couldn't find anything like it documented for video.  If this is not 
> currently set-able, are there particular plans to implement (or never do so)?
> We're using Cordova 3.5.0-0.2.7.  I'm happy to provide more info about the 
> fiddling I've done thus far.
> Thanks!
> Sterling Nelson <[email protected]>
> edit: badly placed line breaks



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to