mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
docs(media): add instructions to listen to status change
This commit is contained in:
parent
c28df732d5
commit
71e49da8ad
@ -17,7 +17,11 @@ export interface MediaError {
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* // Create a MediaPlugin instance. Expects path to file or url as argument
|
* // Create a MediaPlugin instance. Expects path to file or url as argument
|
||||||
* var file = new MediaPlugin('path/to/file.mp3');
|
* // We can optionally pass a second argument to track the status of the media
|
||||||
|
*
|
||||||
|
* const onStatusUpdate = (status) => console.log(status);
|
||||||
|
*
|
||||||
|
* const file = new MediaPlugin('path/to/file.mp3', onStatusUpdate);
|
||||||
*
|
*
|
||||||
* // Catch the Success & Error Output
|
* // Catch the Success & Error Output
|
||||||
* // Platform Quirks
|
* // Platform Quirks
|
||||||
|
Loading…
Reference in New Issue
Block a user