Gets the duration of the file.
the duration in milliseconds, if no duration is available (for example, if streaming live content), -1 is returned.