Sets the duration of the currently playing media.
Subclass can use this when it is able to determine duration and/or notices a change in the media duration. Alternatively, if
interval is non-zero (default), then stream duration is determined based on estimated bitrate, and updated every interval
frames.
This value is reset during PAUSED->READY state changes. Subclasses must call this function from GstBaseParseClass::start
if they want to set a static value.
| this | |
| fmt | |
| duration |
duration value. |
| interval |
how often to update the duration estimate based on bitrate, or 0. |