stopScreenSharing
Permet d'arréter le partage de contenu lors d'un appel vidéo.
stopScreenSharing: (callSession?: CallSession, restoreLocalStream?: boolean) => Promise<OutgoingInviteRequest | void | null>;
Wazo.Phone.stopScreenSharing(callSession, restoreLocalStream);
- Paramètres
- Réponse
- Evènement
- Exemple
callSession
: objet CallSession
correspond à l'appel en cours.
restoreLocalStream
: boolean
void
:
Il ne retourne rien.
Il déclenche les evènements.
ON_SHARE_SCREEN_ENDED
import React, { useState } from "react";
export const myComponent = () => {
const [callSession, setCallSession] = useState({}); // contient l'appel actif
const [callSessions, setCallSessions] = useState({}); // contient l'ensemble des appels (en cours et disponible)
const initializeWebRtc = async () => {
// connexion à la ligne SIP
await Wazo.Phone.connect({ audio: true, video: true });
};
const stopScreenSharing = (callSession) => {
Wazo.Phone.stopScreenSharing(callSession);
};
};