You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/04/27 09:24:40 UTC

[GitHub] [cordova-plugin-media] nkmkevin commented on issue #254: How to get media file duration before playing it?

nkmkevin commented on issue #254:
URL: https://github.com/apache/cordova-plugin-media/issues/254#issuecomment-619852896


   Suggest to use audio.seekTo(1)
   then call audio.getDuration() with 500ms delay.
   Checking on this thread for more info.
   https://stackoverflow.com/a/61358243/3967044


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org