How to use the opus-recorder.isRecordingSupported function in opus-recorder

To help you get started, we’ve selected a few opus-recorder 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 MicroPad / Web / src / webV3 / src / components / note-viewer / elements / RecordingElementComponent.tsx View on Github external
constructor(props: IFileElementComponent) {
		super(props);

		this.canRecord = Recorder.isRecordingSupported();
		try {
			this.recorder = new Recorder({
				encoderPath: '/assets/recorder/encoderWorker.min.js'
			});
		} catch (err) {
			console.warn('Recording is not supported');
			this.canRecord = false;
		}
	}
github MicroPad / Web / app / src / react-web / components / note-viewer / elements / RecordingElementComponent.tsx View on Github external
constructor(props: IFileElementComponent) {
		super(props);

		this.canRecord = Recorder.isRecordingSupported();
		try {
			this.recorder = new Recorder({
				encoderPath: '/assets/recorder/encoderWorker.min.js'
			});
		} catch (err) {
			console.warn('Recording is not supported');
			this.canRecord = false;
		}
	}

opus-recorder

A library for recording opus encoded audio

MIT
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis

Popular opus-recorder functions