How to use the openvidu-node-client.RecordingLayout.BEST_FIT function in openvidu-node-client

To help you get started, we’ve selected a few openvidu-node-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OpenVidu / openvidu / openvidu-testapp / src / app / components / openvidu-instance / openvidu-instance.component.ts View on Github external
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;
github OpenVidu / openvidu / openvidu-testapp / src / app / components / test-scenarios / test-scenarios.component.ts View on Github external
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
  };