diff --git a/src/@ionic-native/plugins/media/index.ts b/src/@ionic-native/plugins/media/index.ts index dd87ed249..52bd034a7 100644 --- a/src/@ionic-native/plugins/media/index.ts +++ b/src/@ionic-native/plugins/media/index.ts @@ -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);