getDuration abstract method

Future<int> getDuration()

Gets the duration of the media resource.

Returns The total duration (ms) of the media file.

Implementation

Future<int> getDuration();