getMediaRotate

Requires:
@ray-js/lock-sdk≥1.0.0

Method signature
getMediaRotate()

Description

Get the device camera rotation angle

Parameters

None

Return Value

Type: MediaRotate
Camera rotation angle (parsed from device/config)
MediaRotate
PropertyTypeDescription
imageAnglenumberImage rotation angle
videoAnglenumberVideo rotation angle

Examples

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