Skip to content

Commit

Permalink
Fixed CB-436 - Add iOS Quirk for Media API play method
Browse files Browse the repository at this point in the history
  • Loading branch information
shazron committed Apr 6, 2012
1 parent 1d7b6c7 commit 74aa66c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/en/edge/cordova/media/media.play.md
Expand Up @@ -144,3 +144,13 @@ Full Example
<p id="audio_position"></p>
</body>
</html>

iOS Quirk
---------

- __numberOfLoops__

Pass in this option to the **play** method to specify the number of times you want the media file to play. e.g:

var myMedia = new Media("http://audio.ibeat.org/content/p1rj1s/p1rj1s_-_rockGuitar.mp3")
myMedia.play({ numberOfLoops: 2 })

0 comments on commit 74aa66c

Please sign in to comment.