Skip to main content

52 docs tagged with "JavaScript"

View all tags

activeSpeaker

activeSpeaker event is emitted whenever a participant is speaking in the meeting

Advanced SDK Guide

This page will help you get started with Metered. You'll be able to create your own video and voice calling applications.

chatHistory

Emitted in response to meeting.getChatHistory(...)

chatMessageError

chatMessageError event in the Metered JavaScript Video SDK: emitted when a chat action, such as sending a message or requesting chat history, is rejected.

chatMessageReceived

chatMessageReceived event in the Metered JavaScript Video SDK: emitted for each broadcast or private chat message, with the sender, type and file details.

chatTyping

Emitted when another participant is typing

chooseAudioInputDevice(deviceId)

chooseAudioInputDevice(deviceId) in the Metered JavaScript Video SDK: select the user's microphone before joining, or switch microphones during a meeting.

chooseVideoInputDevice(deviceId)

chooseVideoInputDevice(deviceId) in the Metered JavaScript Video SDK: select the user's camera before joining, or switch cameras during a meeting.

composedTrackStarted

When the composition is enabled, the composed media stream is received by this event.

Events Introduction

This document describes all the events emitted by the Javascript SDK's meeting object.

getChatAccessToken()

getChatAccessToken() in the Metered JavaScript Video SDK returns the bearer token that authenticates the chat file upload and download REST endpoints.

getChatRoomId()

getChatRoomId() in the Metered JavaScript Video SDK returns the chat room ID of the current meeting, or an empty string when the room has chat disabled.

In-Meeting Chat

Metered ships a native text and file chat that lives inside the meeting. Messages travel over

join(options)

join(options) in the Metered JavaScript Video SDK: join a meeting room with its room URL, user name and access token, and choose which streams to receive.

leaveMeeting()

leaveMeeting() in the Metered JavaScript Video SDK exits the meeting, emitting stateChanged and meetingLeft to the user and participantLeft to the others.

listVideoInputDevices()

listVideoInputDevices() in the Metered JavaScript Video SDK lists the cameras connected to the user's device, with the deviceId for chooseVideoInputDevice.

localTrackStarted

Emitted when startAudio() startVideo() startScreenSharing() shareCustomVideoTrack() or shareCustomAudio() method is called

localTrackStopped

When stopAudio(), stopVideo(), shareCustomVideoTrack() or shareCustomAudio() tracks end, this event is emitted.

meetingEnded

This event is emitted when the meeting is terminated

meetingLeft

leaveMeeting() method is called this event is emitted to the participant

Methods Introduction

If you have not already read the Advanced SDK Guide Advanced SDK Guide, please read it first.

muteLocalAudio()

muteLocalAudio() in the Metered JavaScript Video SDK mutes the participant's microphone without stopping the audio stream or emitting remoteTrackStopped.

pauseLocalVideo()

pauseLocalVideo() in the Metered JavaScript Video SDK mutes the participant's camera or screen share; other participants see a black screen instead.

remoteTrackStarted

Emitted when any participant in the meeting room shares their microphone, camera, or screen

remoteTrackStopped

Emitted when any participant in the meeting room STOP sharing their microphone, camera, or screen

resumeLocalVideo()

resumeLocalVideo() in the Metered JavaScript Video SDK unmutes the participant's camera or screen share. The remoteTrackStarted event is not emitted.

sendChatMessage(text)

sendChatMessage(text) in the Metered JavaScript Video SDK sends a text message to every participant, who receive it on the chatMessageReceived event.

sendTypingIndicator()

sendTypingIndicator() in the Metered JavaScript Video SDK broadcasts that the participant is typing. Other participants receive the chatTyping event.

startAudio()

startAudio() in the Metered JavaScript Video SDK shares the participant's microphone. To pick a specific microphone, call chooseAudioInputDevice first.

startScreenShare()

startScreenShare() in the Metered JavaScript Video SDK shares the user's screen, a window or a browser tab in the meeting, replacing any camera feed.

startVideo()

startVideo() in the Metered JavaScript Video SDK shares the participant's camera. To pick a specific camera, call chooseVideoInputDevice first.

stateChanged

This event is emitted when the meeting state changes

stopAudio()

stopAudio() in the Metered JavaScript Video SDK stops sharing the participant's microphone, emitting remoteTrackStopped to others and localTrackStopped.

unMuteLocalAudio()

unmuteLocalAudio() in the Metered JavaScript Video SDK unmutes the participant's microphone. The remoteTrackStarted event is not emitted to the others.