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:
Stefan Huber 2017-04-14 15:07:27 +02:00 committed by Ibby Hadeed
parent 352ad7ab2f
commit 55f9943f86

View File

@ -160,9 +160,8 @@ export class MediaObject {
* });
*
* // get file duration
* file.getDuration().then((duration) => {
* console.log(position);
* });
* let duration = file.getDuration();
* console.log(duration);
*
* // skip to 10 seconds (expects int value in ms)
* file.seekTo(10000);