The functionality of media.getduration with respect to the one-gap media API is to return the duration of the media file to seconds, and in any case, if the duration is not known then it will return it to the value -1.

BY Best Interview Question ON 13 Jan 2019