Updated Branches:
  refs/heads/master 342164b34 -> 9616db4be

Fixes CB-933 - Add iOS quirk for Media.play (for hardware mute button weirdness)


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/commit/9616db4b
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/9616db4b
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/9616db4b

Branch: refs/heads/master
Commit: 9616db4bebcf15ec8f56b63bfc0fd8d550bc2650
Parents: 342164b
Author: shazron <[email protected]>
Authored: Mon Jun 18 15:37:36 2012 -0700
Committer: shazron <[email protected]>
Committed: Mon Jun 18 15:37:36 2012 -0700

----------------------------------------------------------------------
 docs/en/edge/cordova/media/media.play.md |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/9616db4b/docs/en/edge/cordova/media/media.play.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/media/media.play.md 
b/docs/en/edge/cordova/media/media.play.md
index 892bf0b..de04eaf 100644
--- a/docs/en/edge/cordova/media/media.play.md
+++ b/docs/en/edge/cordova/media/media.play.md
@@ -179,3 +179,10 @@ iOS Quirk
     
         var myMedia = new 
Media("http://audio.ibeat.org/content/p1rj1s/p1rj1s_-_rockGuitar.mp3";)
         myMedia.play({ numberOfLoops: 2 })
+
+- __playAudioWhenScreenIsLocked__
+ 
+    Pass in this option to the **play** method to specify whether you want to 
play the audio of the media file when the screen is locked (this defaults to 
true if not set). If this is set to true, it will ignore the state of the 
hardware mute button. e.g:
+    
+        var myMedia = new 
Media("http://audio.ibeat.org/content/p1rj1s/p1rj1s_-_rockGuitar.mp3";)
+        myMedia.play({ playAudioWhenScreenIsLocked : false })

Reply via email to