Note - See the release notes for the latest Hangouts API version.
This release of the Hangouts API introduces a new feature where your app can now control whether the local participant's video is mirrored to the local participant. In addition, a microphone mute function has been renamed.
For release notes of previous versions, see previous versions.
Mirrored video of local participant
An app can control whether the local participant's video is mirrored (or not) to the local participant.
By default, a hangout shows the video of the local participant mirrored — that is, the user sees their reflection, which is a more natural experience in most cases. However, this causes text and images (such as diagrams) to read backwards. If your app displays such text or images, you may want your video to be unmirrored, which these new functions and events allow:
- isLocalParticipantVideoMirrored - Returns true if the video of the local participant appears mirrored to the local participant, false otherwise.
- setLocalParticipantVideoMirrored - Sets whether the local participant's video appears mirrored to the local participant. By default, the video appears mirrored.
- onLocalParticipantVideoMirroredChanged - An event that fires when the mirrored state of the local participant's video changes. It has functions to add and remove a callback. Its event object LocalParticipantVideoMirroredChangedEvent contains a boolean indicating whether the video for the local participant appears mirrored.
Function renamed to muteParticipantMicrophone
The function's new name is: