@recallai/desktop-sdk 2024.11.4-4e6454bda13856d3f47266167d511724ddfcbea1 → 2024.11.7-b8bfb205192b78bb57c94b50f7a17b17ff9134c5
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.
|
Binary file
|
package/index.js
CHANGED
|
@@ -28,7 +28,6 @@ process.env["GST_DEFAULT_LOG"] = "1";
|
|
|
28
28
|
process.env["GST_DEBUG_NO_COLOR"] = "1";
|
|
29
29
|
process.env["GST_DEBUG_DUMP_DOT_DIR"] = "/tmp/gst.nocommit";
|
|
30
30
|
|
|
31
|
-
|
|
32
31
|
function init(options) {
|
|
33
32
|
addon.init(JSON.stringify(options));
|
|
34
33
|
}
|
|
@@ -41,6 +40,10 @@ function startRecording({ windowId, uploadToken }) {
|
|
|
41
40
|
addon.start_recording(windowId, uploadToken);
|
|
42
41
|
}
|
|
43
42
|
|
|
43
|
+
function stopRecording({ windowId }) {
|
|
44
|
+
addon.stop_recording(windowId);
|
|
45
|
+
}
|
|
46
|
+
|
|
44
47
|
function addEventListener(type, callback) {
|
|
45
48
|
addon.callback((eventJson) => {
|
|
46
49
|
let obj = JSON.parse(eventJson);
|
|
@@ -53,5 +56,6 @@ module.exports = {
|
|
|
53
56
|
init,
|
|
54
57
|
toggle,
|
|
55
58
|
addEventListener,
|
|
56
|
-
startRecording
|
|
59
|
+
startRecording,
|
|
60
|
+
stopRecording
|
|
57
61
|
};
|
package/package.json
CHANGED
|
Binary file
|