---
name: "getMediaRotate"
mode: "api"
versionRequirements:
  - { name: "@ray-js/lock-sdk", version: "1.0.0" }
title: "getMediaRotate - Get device rotation angle."
summary: "Get device rotation angle."
---

## getMediaRotate

> [VERSION] @ray-js/lock-sdk >= 1.0.0

### Description

Get the device camera rotation angle

### Parameters

None


### Return Value

Type: `MediaRotate`

Camera rotation angle (parsed from device/config)

##### MediaRotate

| Property | Type | Description |
| --- | --- | --- |
| `imageAngle` | `number` | Image rotation angle |
| `videoAngle` | `number` | Video rotation angle |

### Examples

#### Example

```ts
import { getMediaRotate } from '@ray-js/lock-sdk';
const rotation = getMediaRotate();
```
