CB-1273: Document Media status states
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/742b1260 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/742b1260 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/742b1260 Branch: refs/heads/master Commit: 742b1260ae0c15d502b4f7482eb26a3dc419e1dc Parents: 615b643 Author: macdonst <simon.macdon...@gmail.com> Authored: Fri Aug 24 15:48:37 2012 -0400 Committer: macdonst <simon.macdon...@gmail.com> Committed: Fri Aug 24 15:48:37 2012 -0400 ---------------------------------------------------------------------- docs/en/2.0.0rc1/cordova/media/media.md | 11 +++++++++++ docs/en/edge/cordova/media/media.md | 11 +++++++++++ 2 files changed, 22 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/742b1260/docs/en/2.0.0rc1/cordova/media/media.md ---------------------------------------------------------------------- diff --git a/docs/en/2.0.0rc1/cordova/media/media.md b/docs/en/2.0.0rc1/cordova/media/media.md index 20e1770..bcb4a69 100644 --- a/docs/en/2.0.0rc1/cordova/media/media.md +++ b/docs/en/2.0.0rc1/cordova/media/media.md @@ -35,6 +35,17 @@ Parameters - __mediaError__: (Optional) The callback that is invoked if there was an error. _(Function)_ - __mediaStatus__: (Optional) The callback that is invoked to indicate status changes. _(Function)_ +Constants +--------- + +The following constants are reported as the only parameter to the __mediaStatus__ callback function. + +- `Media.MEDIA_NONE` = 0; +- `Media.MEDIA_STARTING` = 1; +- `Media.MEDIA_RUNNING` = 2; +- `Media.MEDIA_PAUSED` = 3; +- `Media.MEDIA_STOPPED` = 4; + Methods ------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/742b1260/docs/en/edge/cordova/media/media.md ---------------------------------------------------------------------- diff --git a/docs/en/edge/cordova/media/media.md b/docs/en/edge/cordova/media/media.md index 20e1770..bcb4a69 100644 --- a/docs/en/edge/cordova/media/media.md +++ b/docs/en/edge/cordova/media/media.md @@ -35,6 +35,17 @@ Parameters - __mediaError__: (Optional) The callback that is invoked if there was an error. _(Function)_ - __mediaStatus__: (Optional) The callback that is invoked to indicate status changes. _(Function)_ +Constants +--------- + +The following constants are reported as the only parameter to the __mediaStatus__ callback function. + +- `Media.MEDIA_NONE` = 0; +- `Media.MEDIA_STARTING` = 1; +- `Media.MEDIA_RUNNING` = 2; +- `Media.MEDIA_PAUSED` = 3; +- `Media.MEDIA_STOPPED` = 4; + Methods -------