"duration"
Returns the duration of the current media.
Synopsis
long duration()
Parameters
Parameter | Description |
---|---|
- | - |
Description
Returns the duration of the current media in msec.
Returns 0 if the player doesn't have a valid media file or stream. For live streams, the duration usually changes during playback as more data becomes available.