Gets the duration, in seconds, of the current media resource, a
NaN value if duration is not available, or
Infinity if the media resource is streaming.
HRESULT IHTMLMediaElement::get_duration(float *p);
- Pointer to a variable of type float that receives the duration of the current media resource, in seconds.
time in seconds The duration of the current media, in seconds. NaN (Not a Number) The duration is not available. Infinity The media is streaming.
Returns S_OK if successful, or an error value otherwise.