cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
414
Views
1
Helpful
1
Replies

Jabber Web SDK camera on/off feature

zhangzy
Cisco Employee
Cisco Employee

In Jabber Web SDK , it have  MultimediaController API to  Select And Use Camera,  my question is during the call,  how to set camera off if we don't need send video out,  and set to on when needed. Thanks.

  // In this example it is assumed, that used index is valid
  
var camera =  cwic.MultimediaController.cameraList[0];

  cwic
.MultimediaController.selectCamera(camera);

1 Reply 1

zhangzy
Cisco Employee
Cisco Employee

Jabber Web SDK support  mute video, Cisco DevNet: SDK Web SDK - Voice and Video - API

Tutorial: Conversation Video Control

Conversation Video Control

     In this tutorial will be shown how to:

  • Mute video
  • Unmute video
  • Stop video
  • Start video

Mute/Unmute Video

  Muting video on TelephonyConversation

will cause "onConversationUpdated"

event to be fired. First it needs to be checked if conversation has canMuteVideo capability, and if it does, then call TelephonyConversation.muteVideo

as it is shown in the snippet below:     

var conversation;

// ...
  
// Here we choose on which conversation we want to mute video.
  
// ...

  
if(conversation.capabilities.canMuteVideo)
  
{
  
// Mute video.
  conversation
.muteVideo();
  
}