Duration

Gets the duration of the current media resource.

size_t Duration() const
Since
Available since v4.5.1.
Note: Only effective when playing local media files or on-demand streams.

Return Values

If the method call succeeds, returns the duration of the current media resource in milliseconds.