Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
disableSendVideo = false;
disableActiveAudio = false;
disableActiveVideo = false;
disableRadioButtons = false;
// OpenVidu Browser objects
OV: OpenVidu;
session: Session;
publisher: Publisher;
subscribers = {};
// OpenVidu Node Client objects
sessionProperties: SessionPropertiesAPI = {
mediaMode: MediaMode.ROUTED,
recordingMode: RecordingMode.MANUAL,
defaultRecordingLayout: RecordingLayout.BEST_FIT,
defaultCustomLayout: '',
customSessionId: ''
};
// Session audio and video status
audioMuted = false;
videoMuted = false;
unpublished = false;
publisherChanged = false;
audioIcon = 'mic';
videoIcon = 'videocam';
publishIcon = 'stop';
sendAudioChange: boolean;
sendVideoChange: boolean;
publishers: StreamManagerWrapper[] = [];
subscribers: { connectionId: string, subs: StreamManagerWrapper[] }[] = [];
totalNumberOfStreams = 0;
manyToMany = 2;
oneToMany = 2;
// OpenVidu Browser objects
OVs: OpenVidu[] = [];
sessions: Session[] = [];
// OpenVidu Node Client objects
OV_NodeClient: OpenViduAPI;
sessionProperties: SessionPropertiesAPI = {
mediaMode: MediaMode.ROUTED,
recordingMode: RecordingMode.MANUAL,
defaultRecordingLayout: RecordingLayout.BEST_FIT,
defaultCustomLayout: '',
customSessionId: ''
};
turnConf = 'auto';
manualTurnConf: RTCIceServer = { urls: [] };
publisherProperties: PublisherProperties = {
audioSource: false,
videoSource: undefined,
frameRate: 2,
resolution: '320x240',
mirror: true,
publishAudio: true,
publishVideo: true
};