@lvce-editor/extension-management-worker 4.54.0 → 4.55.0
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.
|
@@ -1585,7 +1585,8 @@ const getNodeRpcInfo = async (extensionId, rpcId) => {
|
|
|
1585
1585
|
throw new Error(`Extension ${extensionId} has no declared rpcs`);
|
|
1586
1586
|
}
|
|
1587
1587
|
if (!extension.builtin) {
|
|
1588
|
-
|
|
1588
|
+
// TODO
|
|
1589
|
+
console.warn(`Node rpc ${rpcId} is only available to built-in extensions`);
|
|
1589
1590
|
}
|
|
1590
1591
|
const rpc = getDeclaredNodeRpc(extension, rpcId);
|
|
1591
1592
|
const extensionRoot = await getExtensionRoot(extension);
|
|
@@ -4346,6 +4347,16 @@ const uninstallExtension = async () => {
|
|
|
4346
4347
|
await invalidateExtensionsCache();
|
|
4347
4348
|
};
|
|
4348
4349
|
|
|
4350
|
+
const startWebRtcAudioStream = async options => {
|
|
4351
|
+
return await invokeAndTransfer$1('WebView.compatRendererProcessInvokeAndTransfer', 'WebRtc.startWebRtcAudioStream', options);
|
|
4352
|
+
};
|
|
4353
|
+
const stopWebRtcAudioStream = async uid => {
|
|
4354
|
+
return await invoke$3('WebView.compatRendererProcessInvoke', 'WebRtc.stopWebRtcAudioStream', uid);
|
|
4355
|
+
};
|
|
4356
|
+
const setRemoteDescription = async options => {
|
|
4357
|
+
await invoke$3('WebView.compatRendererProcessInvoke', 'WebRtc.setRemoteDescription', options);
|
|
4358
|
+
};
|
|
4359
|
+
|
|
4349
4360
|
/* eslint-disable @typescript-eslint/prefer-readonly-parameter-types */
|
|
4350
4361
|
|
|
4351
4362
|
const wrapCommand = command => {
|
|
@@ -4450,7 +4461,10 @@ const commandMap = {
|
|
|
4450
4461
|
'Extensions.setPreference': setPreference,
|
|
4451
4462
|
'Extensions.showViewContextMenu': showViewContextMenu,
|
|
4452
4463
|
'Extensions.uninstall': uninstallExtension,
|
|
4453
|
-
'StatusBar.handleChange': handleChange
|
|
4464
|
+
'StatusBar.handleChange': handleChange,
|
|
4465
|
+
'WebRtc.setRemoteDescription': setRemoteDescription,
|
|
4466
|
+
'WebRtc.startWebRtcAudioStream': startWebRtcAudioStream,
|
|
4467
|
+
'WebRtc.stopWebRtcAudioStream': stopWebRtcAudioStream
|
|
4454
4468
|
};
|
|
4455
4469
|
|
|
4456
4470
|
const initializeAuthWorker = async () => {
|