Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

code property

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.

 

See also

MSMediaKeyError

 

 

Show:
© 2015 Microsoft