Returns the current IHTMLMediaElement error object code or NULL if no error has occurred.
HRESULT IHTMLMediaError::get_code(short *p);
- Pointer to a variable of type short that receives one of the values listed in Possible Values.
MEDIA_ERR_ABORTED The fetching process for the media resource was aborted by the user. MEDIA_ERR_NETWORK A network error has caused the user agent to stop fetching the media resource, after the resource was established to be usable. MEDIA_ERR_DECODE An error has occurred in the decoding of the media resource, after the resource was established to be usable. MEDIA_ERR_SRC_NOT_SUPPORTED The media resource specified by src was not usable.
Returns S_OK if successful, or an error value otherwise.
If no error has occured, the MediaError object is NULL.