How to use the openvidu-browser.LocalRecorder function in openvidu-browser

To help you get started, we’ve selected a few openvidu-browser 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 / full-teaching / src / main / angular / src / app / components / course-details / course-details.component.ts View on Github external
startStopRecording() {
    if (!this.recording) {
      this.recorder = new LocalRecorder(this.publisher.stream);
      this.recorder.record();
      document.getElementById('record-start-stop').innerHTML = 'Finish';
      document.getElementById('record-pause-resume').style.display = 'inline-block';
    } else {
      this.recorder.stop()
        .then(() => {
          document.getElementById('post-video').getElementsByTagName('video')[0].style.display = 'none';
          this.removeRecordingControls();
          let recordingPreview: HTMLVideoElement = this.recorder.preview('post-video');
          recordingPreview.controls = true;
          this.addPostRecordingControls(recordingPreview);
        })
        .catch((e) => { });
    }
    this.recording = !this.recording;
  }

openvidu-browser

OpenVidu Browser

Apache-2.0
Latest version published 6 months ago

Package Health Score

63 / 100
Full package analysis

Similar packages