---
title: MediaKeyMessageEvent.messageType
slug: Web/API/MediaKeyMessageEvent/messageType
tags:
  - API
  - EncryptedMediaExtensions
  - Experimental
  - MediaKeyMessageEvent
  - Property
  - Reference
  - messageType
browser-compat: api.MediaKeyMessageEvent.messageType
---
{{APIRef("EncryptedMediaExtensions")}}{{SeeCompatTable}}

The **`MediaKeyMessageEvent.messageType`** read-only property indicates the
type of message. It may be one of `license-request`,
`license-renewal`, `license-release`, or
`individualization-request`.

## Syntax

```js
var messageType = mediaKeyMessageEvent.messageType;
```

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
