@myinterview/widget-react 1.1.21-development-1c53386 → 1.1.21-development-5e391f9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -7
- package/dist/cjs/index.js +9 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +9 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The myInterview widget for [React](https://reactjs.com).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
For more detailed documentation with all Props, Methods and Customisation possibilities, please visit our website https://documentation.myinterview.com/docs/intro
|
|
6
6
|
|
|
7
7
|
# Installation and usage
|
|
8
8
|
|
|
@@ -47,12 +47,8 @@ const App = () => {
|
|
|
47
47
|
|
|
48
48
|
# Documentation
|
|
49
49
|
|
|
50
|
-
> **For more detailed documentation with all
|
|
51
|
-
|
|
52
|
-
# Thanks
|
|
53
|
-
|
|
54
|
-
Just want to say thank you to everyone who has made it happen.
|
|
50
|
+
> **For more detailed documentation with all Props, Methods and Customisation possibilities, please visit our website https://documentation.myinterview.com/docs/intro**
|
|
55
51
|
|
|
56
52
|
## License
|
|
57
53
|
|
|
58
|
-
MIT Licensed.
|
|
54
|
+
MIT Licensed.
|
package/dist/cjs/index.js
CHANGED
|
@@ -43636,6 +43636,8 @@ const recorderMachineV2 = createMachine({
|
|
|
43636
43636
|
let pausedTime;
|
|
43637
43637
|
let resumeTime;
|
|
43638
43638
|
const chunks = [];
|
|
43639
|
+
let webm;
|
|
43640
|
+
let superBuffer;
|
|
43639
43641
|
const options = { mimeType, videoBitsPerSecond };
|
|
43640
43642
|
try {
|
|
43641
43643
|
const mediaRecorder = new MediaRecorder(mediaStream, options);
|
|
@@ -43657,7 +43659,7 @@ const recorderMachineV2 = createMachine({
|
|
|
43657
43659
|
}
|
|
43658
43660
|
return fixWebmDuration(rawVideoBlob, videoLength, { logger: false });
|
|
43659
43661
|
};
|
|
43660
|
-
|
|
43662
|
+
superBuffer = new Blob(chunks, {
|
|
43661
43663
|
type: mimeType,
|
|
43662
43664
|
});
|
|
43663
43665
|
if (!superBuffer.size) {
|
|
@@ -43665,13 +43667,18 @@ const recorderMachineV2 = createMachine({
|
|
|
43665
43667
|
}
|
|
43666
43668
|
fixVideoMetadata(superBuffer)
|
|
43667
43669
|
.then((blob) => {
|
|
43668
|
-
|
|
43670
|
+
webm = new File([blob], Date.now().toString(), {
|
|
43669
43671
|
type: mimeType,
|
|
43670
43672
|
});
|
|
43671
43673
|
callback({ type: 'SEND_CURRENT_TAKE', data: { webm, videoLength } });
|
|
43672
43674
|
})
|
|
43673
43675
|
.catch((error) => {
|
|
43674
43676
|
console.error('fixVideoMetadata', error);
|
|
43677
|
+
})
|
|
43678
|
+
.finally(() => {
|
|
43679
|
+
chunks.length = 0;
|
|
43680
|
+
superBuffer = null;
|
|
43681
|
+
webm = null;
|
|
43675
43682
|
});
|
|
43676
43683
|
};
|
|
43677
43684
|
mediaRecorder.onstart = () => {
|