Skip to content

Commit

Permalink
chore: optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Sep 27, 2024
1 parent 5166409 commit 6c660e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export default class ScreenShare
ScreenCaptureSourceType.ScreencapturesourcetypeScreen
) {
this.engine?.startScreenCaptureByDisplayId(
targetSource.sourceId,
targetSource.sourceId!,
{},
{
dimensions: { width, height },
Expand All @@ -208,7 +208,7 @@ export default class ScreenShare
);
} else {
this.engine?.startScreenCaptureByWindowId(
targetSource.sourceId,
targetSource.sourceId!,
{},
{
dimensions: { width, height },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default function ScreenShare() {
ScreenCaptureSourceType.ScreencapturesourcetypeScreen
) {
engine.current.startScreenCaptureByDisplayId(
targetSource.sourceId,
targetSource.sourceId!,
{},
{
dimensions: { width, height },
Expand All @@ -147,7 +147,7 @@ export default function ScreenShare() {
);
} else {
engine.current.startScreenCaptureByWindowId(
targetSource.sourceId,
targetSource.sourceId!,
{},
{
dimensions: { width, height },
Expand Down
2 changes: 1 addition & 1 deletion ts/Private/internal/RtcEngineExInternal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ export class RtcEngineExInternal extends IRtcEngineExImpl {
value.iconImage.length!
);
}
value.sourceDisplayId = parseIntPtr2Number(value.sourceDisplayId);
value.sourceDisplayId = parseIntPtr2Number(value.sourceDisplayId!);
return value;
}
);
Expand Down

0 comments on commit 6c660e0

Please sign in to comment.