code property

Deprecated. Gets the error code related to the MSMediaKeySession error state.

Important  This property is not supported in Internet Explorer 11 on Windows 7.
 

This property is read-only.

IE11

 

Syntax

JavaScript
error = object.code

 

Property values

Type: number

The error code value.

ValueCondition
MS_MEDIA_KEYERR_UNKNOWN
1

Unknown error occurred.

MS_MEDIA_KEYERR_CLIENT
2

An error with the client occurred.

MS_MEDIA_KEYERR_SERVICE
3

An error with the service occurred.

MS_MEDIA_KEYERR_OUTPUT
4

An error with the output occurred.

MS_MEDIA_KEYERR_HARDWARECHANGE
5

An error occurred related to a hardware change.

MS_MEDIA_KEYERR_DOMAIN
6

An error with the domain occurred.

 

Remarks

As of Microsoft Edge, this property is deprecated. For more information on EME implementation updates in Microsoft Edge, see Encrypted Media Extensions updates.

See also

MSMediaKeyError

 

 

Show: