getMediaInfo

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

Method signature
getMediaInfo()

Description

Get device camera data

Parameters

None

Return Value

Type: MediaInfo
Data
MediaInfo
PropertyTypeDescription
imageAnglenumberImage rotation angle
videoAnglenumberVideo rotation angle
mediaWidthnumberResolution width
mediaHeightnumberResolution height
isSEIbooleanWhether to use the SEI-based angle solution
supportTalkbooleanWhether intercom is supported
isTwoWayTalkbooleanWhether two-way talk is supported

Examples

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