Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(preview): restore browser tab recording via display media handler #8957

ClosedGigioxx(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/8957/headopened View on GitHub

Showing 8 changed files with 5 additions and 10 deletions (loading 7).

x
0 of 8 viewed, 8 left
5 additions and 10 deletionsapps/desktop/src/ipc/methods/preview.tsModified
View file
@@ -11,7 +11,6 @@
DesktopPreviewConfigInputSchema,
DesktopPreviewNavigateInputSchema,
DesktopPreviewRecordingArtifactSchema,
- DesktopPreviewRecordingSourceSchema,
DesktopPreviewRecordingSaveInputSchema,
DesktopPreviewRegisterWebviewInputSchema,
DesktopPreviewScreenshotArtifactSchema,
@@ -174,15 +173,11 @@
"desktop.ipc.preview.cancelPickElement",
(manager, tabId) => manager.cancelPickElement(tabId),
-export const startRecording = DesktopIpc.makeIpcMethod({
- channel: IpcChannels.PREVIEW_RECORDING_START_CHANNEL,
- payload: DesktopPreviewTabInputSchema,
- result: DesktopPreviewRecordingSourceSchema,
- handler: Effect.fn("desktop.ipc.preview.startRecording")(function* ({ tabId }) {
- const manager = yield* PreviewManager.PreviewManager;
- return yield* manager.startRecording(tabId);
- }),
-});
+export const startRecording = tabMethod(
+ IpcChannels.PREVIEW_RECORDING_START_CHANNEL,
+ "desktop.ipc.preview.startRecording",
+ (manager, tabId) => manager.startRecording(tabId),
+);
export const stopRecording = tabMethod(
IpcChannels.PREVIEW_RECORDING_STOP_CHANNEL,
"desktop.ipc.preview.stopRecording",