Classes
- CameraMuteEvent
- HasCameraEvent
- HasMicrophoneEvent
- HasSpeakersEvent
- LocalAudioNotificationsMuteChangedEvent
- LocalParticipantVideoMirroredChangedEvent
- MicrophoneMuteEvent
- VolumesChangedEvent
Functions
- clearAvatar
- areLocalAudioNotificationsMuted
- getParticipantAudioLevel
- getAvatar
- getCameraMute
- getMicrophoneMute
- getParticipantVolume
- getVolumes
- hasCamera
- hasMicrophone
- hasSpeakers
- isLocalParticipantVideoMirrored
- isParticipantAudible
- isParticipantVisible
- muteParticipantMicrophone
- requestParticipantMicrophoneMute
- setLocalAudioNotificationsMute
- setLocalParticipantVideoMirrored
- setParticipantAudioLevel
- setAvatar
- setCameraMute
- clearCameraMute
- setMicrophoneMute
- clearMicrophoneMute
- setParticipantAudible
- setParticipantVisible
Events
- onCameraMute
- onHasCamera
- onHasMicrophone
- onHasSpeakers
- onLocalAudioNotificationsMuteChanged
- onLocalParticipantVideoMirroredChanged
- onMicrophoneMute
- onVolumesChanged
Classes in gapi.hangout.av
| Class | Description |
|---|---|
class CameraMuteEvent(
|
Contains information about the muting of the video from the local camera.
|
class HasCameraEvent(
|
Contains information about the local camera being activated.
|
class HasMicrophoneEvent(
|
Contains information about the activation of the local microphone.
|
class HasSpeakersEvent(
|
Contains information about the activation of the local audio speakers.
|
class LocalAudioNotificationsMuteChangedEvent(
|
An event fired when localAudioNotificationsMute is changed.
|
class LocalParticipantVideoMirroredChangedEvent(
|
Contains information about whether the video for the local participant
appears mirrored for the local participant.
|
class MicrophoneMuteEvent(
|
Contains information about muting the local microphone.
|
class VolumesChangedEvent(
|
Contains information about changes to the volumes of participants.
|
Functions in gapi.hangout.av
| Function | Returns | Description & Parameter |
|---|---|---|
clearAvatar(
|
|
Removes avatar image displayed over the video feed. See also: gapi.hangout.av.setAvatar
|
areLocalAudioNotificationsMuted()
|
|
Gets whether audio notifications are muted for the local participant. See gapi.hangout.av.setLocalAudioNotificationsMute for details on what types of sounds are muted. |
getParticipantAudioLevel(
|
Array.<number>
|
Gets the audio level for a participant as set by
setParticipantAudioLevel.
Returns a two-element array where the first element is the level of
the left audio channel and the second element is the level of
the right audio channel.
|
getAvatar(
|
string
|
Gets the URL for the avatar image for the given participant.
Returns undefined if no avatar image is set for the participant.
|
getCameraMute()
|
boolean
|
Returns true if the local participant's camera is currently sending video, false otherwise. |
getMicrophoneMute()
|
boolean
|
Returns true if the microphone is muted for the local participant, false otherwise. |
getParticipantVolume(
|
number
|
Gets the current audio volume for the given participant,
a number from 0 to 5, inclusive.
|
getVolumes()
|
Object.<string, number>
|
Gets the current audio volume level for all participants. Returns an object with key/value pairs where the key is the participant ID and the value is the volume for that participant. The volume is a number from 0 to 5, inclusive. |
hasCamera()
|
boolean
|
Returns true if the local participant has an active camera, false otherwise. |
hasMicrophone()
|
boolean
|
Returns true if the local participant has a working mic, false otherwise. |
hasSpeakers()
|
boolean
|
Returns true if the local participant has working audio speakers, false otherwise. |
isLocalParticipantVideoMirrored()
|
boolean
|
Returns true if the video of the local participant appears mirrored to the local participant, false otherwise. |
isParticipantAudible(
|
boolean
|
Returns true if the participant's audio is muted for the local participant,
false otherwise. See also: gapi.hangout.av.setParticipantAudible
|
isParticipantVisible(
|
boolean
|
Returns true if the participant's video is muted for the local participant,
false otherwise. See also: gapi.hangout.av.setParticipantVisible
|
muteParticipantMicrophone(
|
|
Mutes a participant's microphone.
|
requestParticipantMicrophoneMute(
|
|
|
setLocalAudioNotificationsMute(
|
|
Sets whether audio notifications are muted for the local participant. Sounds
include other users joining and departing, ringing telephone calls, and all
other audio originating from the Hangout itself (as opposed to audio
originating from participants).
Sound effects will
not be muted.
|
setLocalParticipantVideoMirrored(
|
|
Sets whether the local participant's video appears mirrored to the local
participant. By default, the video appears mirrored.
|
setParticipantAudioLevel(
|
|
Sets the audio level of a participant as heard by only the local participant.
The audio level for a participant is in the range 0-10 with 1 being the
default, a number from 0 to 1 indicating that the audio should be quieter
than the default and a number from 1 to 10 indicating that the audio should
be louder than the default. The audio level can also be set independently
for the right and left audio channels.
|
setAvatar(
|
|
Shows an image over the video feed for a participant. Note this affects only
the view seen by the local participant. The other participants in the Hangout
will still see the video feed for the given participant.
|
setCameraMute(
|
|
Starts or stops the local participant from sending video to the other Hangout
participants.
|
clearCameraMute()
|
|
Reverts the camera mute state to the last state set by the local participant. |
setMicrophoneMute(
|
|
Mutes or unmutes the microphone for the local participant.
|
clearMicrophoneMute()
|
|
Reverts the microphone mute state to the last state set by the local participant. |
setParticipantAudible(
|
|
Sets the mute state of a participant as heard by only the local participant.
|
setParticipantVisible(
|
|
Sets the visibility state of a participant as viewed by only the local
participant.
|
Event Functions in gapi.hangout.av
| Event Function | Description |
|---|---|
| gapi.hangout.av.onCameraMute | |
onCameraMute.add(
|
Adds a callback to be called when the local participant starts or stops
sending video.
|
onCameraMute.remove(
|
Removes a callback previously added by
onCameraMute.add.
|
| gapi.hangout.av.onHasCamera | |
onHasCamera.add(
|
Adds a callback to be called when the local participant activates or
deactivates their camera. "Activate" means the camera is connected and
available (whether muted or not muted).
|
onHasCamera.remove(
|
Removes a callback previously added by
onHasCamera.add.
|
| gapi.hangout.av.onHasMicrophone | |
onHasMicrophone.add(
|
Adds a callback to be called when the local participant activates or
deactivates their mic. "Activate" means the microphone is connected and
available (whether muted or not muted).
|
onHasMicrophone.remove(
|
Removes a callback previously added by
onHasMicrophone.add.
|
| gapi.hangout.av.onHasSpeakers | |
onHasSpeakers.add(
|
Adds a callback to be called when the local participant activates or
deactivates their audio speakers. "Activate" means the speakers are connected
and available (whether the volume is turned up or down).
|
onHasSpeakers.remove(
|
Removes a callback previously added by
onHasSpeakers.add.
|
| gapi.hangout.av.onLocalAudioNotificationsMuteChanged | |
onLocalAudioNotificationsMuteChanged.add(
|
Adds a callback to be called when the localAudioNotificationsMute changes.
|
onLocalAudioNotificationsMuteChanged.remove(
|
Removes a callback previously added by
gapi.hangout.av.onLocalAudioNotificationsMuteChanged.add.
|
| gapi.hangout.av.onLocalParticipantVideoMirroredChanged | |
onLocalParticipantVideoMirroredChanged.add(
|
Adds a callback to be called when the mirrored state of the local
participant's video changes.
|
onLocalParticipantVideoMirroredChanged.remove(
|
Removes a callback previously added by
onLocalParticipantVideoMirroredChanged.add.
|
| gapi.hangout.av.onMicrophoneMute | |
onMicrophoneMute.add(
|
Adds a callback to be called when the microphone mute state for the local
participant changes.
|
onMicrophoneMute.remove(
|
Removes a callback previously added by
onMicrophoneMute.add.
|
| gapi.hangout.av.onVolumesChanged | |
onVolumesChanged.add(
|
Adds a callback to be called when the audio volume levels at the source
changes for any participant. The argument to the callback is an event that
holds the new volume levels for all participants.
|
onVolumesChanged.remove(
|
Removes a callback previously added by
onVolumesChanged.add.
|