File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " react-voice-recorder-player" ,
3- "version" : " 1.0.4 " ,
3+ "version" : " 1.0.5 " ,
44 "description" : " Voice Recorder Component for React" ,
55 "repository" : {
66 "type" : " git" ,
4545 "lint" : " eslint . --ext .ts,.tsx" ,
4646 "size" : " t=\" $(npm pack .)\" ; wc -c \" ${t}\" ; tar tvf \" ${t}\" ; rm \" ${t}\" ;" ,
4747 "prepare" : " husky install" ,
48- "semantic-release" : " semantic-release --branches main"
48+ "semantic-release" : " semantic-release --branches main" ,
49+ "host" : " vite --host"
4950 },
5051 "dependencies" : {
5152 "prop-types" : " ^15.8.1" ,
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ function Playback() {
8181 const audioELem = document . querySelector ( '#playback_audio' ) as HTMLAudioElement ;
8282 /* play from start */
8383 if ( audioELem . readyState !== 4 ) {
84- const audioURL = window . URL . createObjectURL ( new Blob ( [ blob as BlobPart ] ) ) ;
84+ const audioURL = window . URL . createObjectURL ( new Blob ( [ blob as BlobPart ] , { type : 'audio/mpeg' } ) ) ;
8585 audioELem . src = audioURL ;
8686 audioELem . onloadeddata = ( ) => {
8787 audioELem . play ( ) ;
You can’t perform that action at this time.
0 commit comments