Gracefully stops and cleans the current recording (WARNING: it is completely dismissed). Sets state to READY
so the recording can start again
Downloads the recorded video through the browser. state property must be FINISHED
Gets the raw Blob file. Methods preview, download, uploadAsBinary and uploadAsMultipartfile use this same file to perform their specific actions. state property must be FINISHED
Pauses the recording of the Stream. state property must be RECORDING
. After method succeeds is set to PAUSED
A Promise (to which you can optionally subscribe to) that is resolved if the recording was successfully paused and rejected with an Error object if not
Previews the recording, appending a new HTMLVideoElement to element with id parentId
. state property must be FINISHED
Starts the recording of the Stream. state property must be READY
. After method succeeds is set to RECORDING
A Promise (to which you can optionally subscribe to) that is resolved if the recording successfully started and rejected with an Error object if not
Optional
options: anyThe MediaRecorder.options to be used to record this Stream. For example:
var OV = new OpenVidu();
var publisher = await OV.initPublisherAsync();
var localRecorder = OV.initLocalRecorder(publisher.stream);
var options = {
mimeType: 'video/webm;codecs=vp8',
audioBitsPerSecond:128000,
videoBitsPerSecond:2500000
};
localRecorder.record(options);
If not specified, the default options preferred by the platform will be used.
Resumes the recording of the Stream. state property must be PAUSED
. After method succeeds is set to RECORDING
A Promise (to which you can optionally subscribe to) that is resolved if the recording was successfully resumed and rejected with an Error object if not
Ends the recording of the Stream. state property must be RECORDING
or PAUSED
. After method succeeds is set to FINISHED
A Promise (to which you can optionally subscribe to) that is resolved if the recording successfully stopped and rejected with an Error object if not
Uploads the recorded video as a binary file performing an HTTP/POST operation to URL endpoint
. state property must be FINISHED
. Optional HTTP headers can be passed as second parameter. For example:
var headers = {
"Cookie": "$Version=1; Skin=new;",
"Authorization":"Basic QWxhZGpbjpuIHNlctZQ=="
}
A Promise (to which you can optionally subscribe to) that is resolved with the http.responseText
from server if the operation was successful and rejected with the failed http.status
if not
Optional
headers: anyUploads the recorded video as a multipart file performing an HTTP/POST operation to URL endpoint
. state property must be FINISHED
. Optional HTTP headers can be passed as second parameter. For example:
var headers = {
"Cookie": "$Version=1; Skin=new;",
"Authorization":"Basic QWxhZGpbjpuIHNlctZQ=="
}
A Promise (to which you can optionally subscribe to) that is resolved with the http.responseText
from server if the operation was successful and rejected with the failed http.status
if not:
Optional
headers: anyGenerated using TypeDoc
Easy recording of Stream objects straightaway from the browser. Initialized with initLocalRecorder method