You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by js...@apache.org on 2014/11/12 18:47:08 UTC

cordova-plugin-media git commit: CB-7977 Mention deviceready in plugin docs

Repository: cordova-plugin-media
Updated Branches:
  refs/heads/master 5f652f4b4 -> 52b547f90


CB-7977 Mention deviceready in plugin docs


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/commit/52b547f9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/tree/52b547f9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/diff/52b547f9

Branch: refs/heads/master
Commit: 52b547f90b4ba627615d3d95f36d8abc33f012b6
Parents: 5f652f4
Author: Josh Soref <js...@blackberry.com>
Authored: Thu Nov 6 17:12:22 2014 -0500
Committer: Josh Soref <js...@blackberry.com>
Committed: Thu Nov 6 17:12:41 2014 -0500

----------------------------------------------------------------------
 doc/index.md | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/blob/52b547f9/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index f7325ac..d130e6e 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -26,6 +26,15 @@ specification for media capture, and is provided for convenience only.
 A future implementation will adhere to the latest W3C specification
 and may deprecate the current APIs.
 
+This plugin defines a global `Media` Constructor.
+
+Although in the global scope, it is not available until after the `deviceready` event.
+
+    document.addEventListener("deviceready", onDeviceReady, false);
+    function onDeviceReady() {
+        console.log(Media);
+    }
+
 ## Installation
 
     cordova plugin add org.apache.cordova.media


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org