![]() ![]() ![]() ![]() stopRecordingĪ function, which stops recording when invoked. resumeRecordingĪ function, which resumes the recording when invoked. pauseRecordingĪ function, which pauses the recording when invoked. If set to true, will ask media permission on mounting.ĭefault: false Props available in the render function errorĪ function, which starts recording when invoked. But, you can provide the video prop ( as the MediaTrackConstraints) which will then utilized by screen capture (for example, height, width etc.) videoĪ boolean value. Please note that at the moment, the MediaRecorder won't record two alike streams at a time, if you provide both screen and video prop, the screen capturing will take precedence than the video capturing. This function would return a react element/component.Ī boolean value. By default, its true renderĪ function which accepts an object containing fields: status, startRecording, stopRecording and mediaBlob. Type: function(blobUrl: string, blob: Blob) It'll provide the blob and the blob url as its params. Please note that if you specify the MIME type via either audio or video prop and through this mediaRecorderOptions, the mediaRecorderOptions have higher precedence.Ī function that would get invoked when the MediaRecorder starts.Ī function that would get invoked when the MediaRecorder stops. It is one of the two values: "native", meaning that line ending characters are changed to match host OS filesystem convention, or "transparent", meaning that endings are stored in the blob without changeĪ media stream object itself (optional) mediaRecorderOptionsĪn optional options object that will be passed to MediaRecorder. endings, with a default value of "transparent", that specifies how strings containing the line ending character \n are to be written out.type, that represents the MIME type of the content of the array that will be put in the blob.Options / Props audioĬan be either a boolean value or a MediaTrackConstraints object.Īn optional BlobPropertyBag dictionary which may specify the following two attributes (for the mediaBlob): The hook receives an object as argument with the same ReactMediaRecorder options / props (except the render function). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |