Skip to content

Commit 2dd01e5

Browse files
Feat: video click event
1 parent d131b71 commit 2dd01e5

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

client/packages/lowcoder/src/comps/comps/meetingComp/videoMeetingStreamComp.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ let VideoCompBuilder = (function (props) {
252252
<ReactResizeDetector onResize={onResize}>
253253
<Container ref={conRef} $style={props.style}>
254254
<VideoContainer
255+
onClick={() => props.onEvent("videoClicked")}
255256
ref={videoRef}
256257
$style={props.style}
257258
id={props.userId.value}

client/packages/lowcoder/src/comps/controls/eventHandlerControl.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,11 @@ export const videoActiveInactive: EventConfigType = {
368368
value: "videoActiveInactive",
369369
description: trans("meeting.videoActiveInactive"),
370370
};
371+
export const videoClicked: EventConfigType = {
372+
label: trans("meeting.videoClicked"),
373+
value: "videoClicked",
374+
description: trans("meeting.videoClicked"),
375+
};
371376
export const InputEventHandlerControl = eventHandlerControl([
372377
changeEvent,
373378
focusEvent,
@@ -400,4 +405,5 @@ export const MeetingEventHandlerControl = eventHandlerControl([
400405
cameraView,
401406
audioMuteUnmute,
402407
videoActiveInactive,
408+
videoClicked,
403409
] as const);

client/packages/lowcoder/src/i18n/locales/en.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,6 +1440,7 @@ export const en = {
14401440
screenShared: "Screen Shared",
14411441
screenSharedDesc: "Screen Shared",
14421442
audioMuteUnmute: "Audio Mute",
1443+
videoClicked: "Video Clicked",
14431444
videoActiveInactive: "Video Active Inactive",
14441445
size: "Size",
14451446
top: "Top",

0 commit comments

Comments
 (0)