File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,11 @@ A `function` which unmutes the audio tracks when invoked.
167
167
168
168
#### mediaBlobUrl
169
169
170
- A ` blob ` url that can be wired to an ` <audio /> ` , ` <video /> ` or an ` <a /> ` element.
170
+ A ` blob ` url that can be wired to an ` <audio /> ` , ` <video /> ` or an ` <a /> ` element.
171
+
172
+ #### clearBlobUrl
173
+
174
+ A ` function ` which clears the existing generated blob url (if any)
171
175
172
176
#### isMuted
173
177
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ type ReactMediaRecorderRenderProps = {
12
12
status : StatusMessages ;
13
13
isAudioMuted : boolean ;
14
14
previewStream : MediaStream | null ;
15
+ clearBlobUrl : ( ) => void ;
15
16
} ;
16
17
17
18
type ReactMediaRecorderProps = {
@@ -239,5 +240,6 @@ export const ReactMediaRecorder = ({
239
240
previewStream : mediaStream . current
240
241
? new MediaStream ( mediaStream . current . getVideoTracks ( ) )
241
242
: null ,
243
+ clearBlobUrl : ( ) => setMediaBlobUrl ( null ) ,
242
244
} ) ;
243
245
} ;
You can’t perform that action at this time.
0 commit comments