import { Participant, MediaDevice, LocalAudioTrack, LocalVideoTrack, TestSpeakerOption, ExecutedFailure, CommandChannelMsg } from "@zoom/videosdk"; import { IMeeting, Meeting_Role, IMeetingPayload, ZOOM_COMMAND, IODevices } from "./types"; declare const roles: { HOST: Meeting_Role; GUEST: Meeting_Role; }; /***************************************************************************************** * This function will create a meeting and will return a Promise * * @param topic : string - Required Topic name * * @param base_url : string - Required Base URL * *****************************************************************************************/ declare function createMeeting(topic: string, base_url: string): Promise; /***************************************************************************************** * This function will create local audio track and will return a * * Promise<{ localAudioTrack: LocalAudioTrack; isMuted: boolean }> * * @param deviceId : string - Optional Device ID (Video Device ex. Camera) * * @param deviceType : string - Optional string (Ex. speaker * *****************************************************************************************/ declare function createLocalAudioTrack(deviceId?: string, deviceType?: string): Promise<{ localAudioTrack: LocalAudioTrack; isMuted: boolean; }>; /***************************************************************************************** * This function will create local audio track and will return a * * Promise<{ localAudioTrack: LocalAudioTrack; isMuted: boolean }> * * @param deviceId : string - Optional Device ID (Video Device ex. Camera) * *****************************************************************************************/ declare function createLocalVideoTrack(deviceId?: string): Promise<{ localVideoTrack: LocalVideoTrack; isVideoOn: boolean; }>; declare function startLocalVideo(VideoElement?: HTMLVideoElement | null): Promise; /***************************************************************************************** * This function will stop local preview video and will return a Promise * * No parameters needed * *****************************************************************************************/ declare function stopLocalVideo(): Promise; /***************************************************************************************** * This function will mute local preview microphone and will return a Promise * * No parameters needed * *****************************************************************************************/ declare function muteLocalAudio(): Promise; /***************************************************************************************** * This function will unmute local preview microphone and will return a Promise * * No parameters needed * *****************************************************************************************/ declare function unMuteLocalAudio(): Promise; /***************************************************************************************** * This function will start local preview speaker testing and will return * * a Promise. * * No parameters needed * *****************************************************************************************/ declare function testLocalSpeaker(options?: TestSpeakerOption): Promise; /***************************************************************************************** * This function will stop local preview speaker testing and will return * * a Promise. * * No parameters needed * *****************************************************************************************/ declare function stopSpeakerTesting(): Promise; /***************************************************************************************** * This function will initialize HTML elements for displaying videos in DOM and * * will return a Promise * * No parameters needed * *****************************************************************************************/ declare function initializeHTMLElements(videoElement: HTMLVideoElement | null, canvasElement: HTMLCanvasElement | null, paticipantCanvas: HTMLCanvasElement | null): Promise; /***************************************************************************************** * This function will retrieve all available/connected devices on your computer * * and will return * * Promise<{ mics: MediaDevice[]; speakers: MediaDevice[];cameras: MediaDevice[];}. * * No parameters needed * *****************************************************************************************/ declare function getDevices(): Promise; /***************************************************************************************** * This function will retrieve all available/connected camera devices on * * your computer and will return Promise. * * No parameters needed * *****************************************************************************************/ declare function getCameraList(): Promise; /***************************************************************************************** * This function will retrieve all available/connected microphone devices on * * your computer and will return Promise. * * No parameters needed * *****************************************************************************************/ declare function getMicList(): Promise; /***************************************************************************************** * This function will retrieve all available/connected speaker devices on * * your computer and will return Promise. * * No parameters needed * *****************************************************************************************/ declare function getSpeakerList(): Promise; /***************************************************************************************** * This function will switch active microphone devices given a deviceId * * @param deviceId : string - Required Microphone Device Id * *****************************************************************************************/ declare function switchMicrophone(deviceId: string): Promise; /***************************************************************************************** * This function will switch active speaker devices given a deviceId * * @param deviceId : string - Required Speaker Device Id * *****************************************************************************************/ declare function switchSpeaker(deviceId: string): Promise; /***************************************************************************************** * This function will switch active camer devices given a deviceId * * @param deviceId : string - Required Camera Device Id * *****************************************************************************************/ declare function switchCamera(deviceId: string): Promise; /***************************************************************************************** * This function will generate JWT Signature String and returns Promise * * @param meeting : string - Required IMeetingPayload * *****************************************************************************************/ declare function generateJWTSignature(meeting: IMeetingPayload): Promise; /***************************************************************************************** * This function will join user to Zoom Meeting and returns Promise * * @param meeting : string - Required IMeetingPayload * *****************************************************************************************/ declare function joinMeeting(payload: IMeetingPayload): Promise; declare function setupMeetingSession(): Promise; /***************************************************************************************** * This function will leave the current user in the Zoom Meeting and * * returns Promise * * No parameters needed * *****************************************************************************************/ declare function leaveMeeting(): Promise; /***************************************************************************************** * This function will end the current Zoom meeting (Only if current user is a Host) * * and returns Promise * * No parameters needed * *****************************************************************************************/ declare function endMeeting(): Promise; /***************************************************************************************** * This function will start self video of current user in Zoom meeting * * and returns Promise * * No parameters needed * *****************************************************************************************/ declare function startVideo(): Promise; /***************************************************************************************** * This function will stop self video of current user in Zoom meeting * * and returns Promise * * No parameters needed * *****************************************************************************************/ declare function stopVideo(): Promise; /***************************************************************************************** * This function will start unmute microphone of current user in Zoom meeting. * * No parameters needed * *****************************************************************************************/ declare function unMuteAudio(): Promise; /***************************************************************************************** * This function will start mute microphone of current user in Zoom meeting. * * No parameters needed * *****************************************************************************************/ declare function muteAudio(): Promise; /***************************************************************************************** * This function will return current user info if userId is not passed. * * @param userId : number - Optional userId number * *****************************************************************************************/ declare function getUserInfo(userId?: number): Promise; /***************************************************************************************** * This function will return all meeting participants except the currenUser * * and returns Promise. * * No parameters needed * *****************************************************************************************/ declare function getAllParticipants(): Promise; /***************************************************************************************** * This function will attach participant video given with userId to * * a video player in DOM and returns Promise. * * @param meeting : string - Required userId string * *****************************************************************************************/ declare function attachParticipantVideo(userId: number): Promise; /***************************************************************************************** * This function will deattach participant video given with userId to * * a video player in DOM and returns Promise. * * @param meeting : string - Required userId string * *****************************************************************************************/ declare function detachParticipantVideo(userId: number): Promise; /***************************************************************************************** * This function will send a command to given userId if passed, if to * * Promise<{ localAudioTrack: LocalAudioTrack; isMuted: boolean }> * * @param command : ZOOM_COMMAND - Required a string from ZOOM_COMMAND enum * * @param userId : number - Optional Zoom Participant userId * *****************************************************************************************/ declare function sendCommand(command: ZOOM_COMMAND, userId?: number): Promise; declare function attachParticipantsVideo(): Promise; /***************************************************************************************** * This function will set the custom avatar zoom image to the current user * * @param avatarSrc : string - Required a string avatar image source link * *****************************************************************************************/ declare function setAvatarMeetingImage(payload: string): void; export { roles, type Participant, type MediaDevice, initializeHTMLElements, createMeeting, createLocalAudioTrack, createLocalVideoTrack, startLocalVideo, stopLocalVideo, testLocalSpeaker, stopSpeakerTesting, muteLocalAudio, unMuteLocalAudio, generateJWTSignature, joinMeeting, setupMeetingSession, leaveMeeting, endMeeting, startVideo, stopVideo, unMuteAudio, muteAudio, getUserInfo, getAllParticipants, getDevices, getCameraList, getMicList, getSpeakerList, switchMicrophone, switchSpeaker, switchCamera, attachParticipantsVideo, attachParticipantVideo, detachParticipantVideo, sendCommand, setAvatarMeetingImage };