Gets the duration of the media resource.
Returns The total duration (ms) of the media file.
Future<int> getDuration();