目录

How do I implement video mirroring recording using the front camera?

To record video using the front camera, you need to enable the mirroring feature. Call enableMirror() to enable or disable mirroring.

Before enabling mirroring, you need to call isMirrorSupported to check whether the device supports mirroring. The sample code is as follows:

function testIsMirrorSupported(videoOutput: camera.VideoOutput): boolean {
  let isSupported: boolean = videoOutput.isMirrorSupported();
  return isSupported;
}