Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ylduang committed Jun 15, 2022
1 parent f80749b commit e5239cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/mixstream-ui/electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ async function createWindow() {
});

/*隐藏electron的菜单栏*/
Menu.setApplicationMenu(null);
if (!__DEV__) {
Menu.setApplicationMenu(null);
}
return win;
}

Expand Down
6 changes: 4 additions & 2 deletions packages/mixstream-ui/src/engine/RtcEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,10 @@ export class RtcEngine extends EventEmitter {
startScreenCapture(type: VIDEO_SOURCE_TYPE, config: ScreenCaptureConfiguration) {
const isPrimary = type === VIDEO_SOURCE_TYPE.VIDEO_SOURCE_SCREEN_PRIMARY;
let code = isPrimary
? this._rtcEngine.startPrimaryScreenCapture(config)
: this._rtcEngine.startSecondaryScreenCapture(config);
? this._rtcEngine.startScreenCaptureByWindow(config.windowId, config.screenRect, config.params as any)
: this._rtcEngine.startScreenCaptureByWindow(config.windowId, config.screenRect, config.params as any);
// ? this._rtcEngine.startPrimaryScreenCapture(config)
// : this._rtcEngine.startSecondaryScreenCapture(config);
if (code !== 0) {
throw new Error(
`Failed to screen share ${
Expand Down

0 comments on commit e5239cf

Please sign in to comment.