mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 16:52:53 +08:00
docs(media): minor fix (#1358)
`getDuration` is synchronous, inside the example it was used with a promise, which is quite missleading...
This commit is contained in:
parent
352ad7ab2f
commit
55f9943f86
@ -160,9 +160,8 @@ export class MediaObject {
|
|||||||
* });
|
* });
|
||||||
*
|
*
|
||||||
* // get file duration
|
* // get file duration
|
||||||
* file.getDuration().then((duration) => {
|
* let duration = file.getDuration();
|
||||||
* console.log(position);
|
* console.log(duration);
|
||||||
* });
|
|
||||||
*
|
*
|
||||||
* // skip to 10 seconds (expects int value in ms)
|
* // skip to 10 seconds (expects int value in ms)
|
||||||
* file.seekTo(10000);
|
* file.seekTo(10000);
|
||||||
|
Loading…
Reference in New Issue
Block a user