@@ -28,20 +28,20 @@ import { RefControl } from "comps/controls/refControl";
28
28
import { useEffect , useRef , useState } from "react" ;
29
29
30
30
import { AutoHeightControl } from "comps/controls/autoHeightControl" ;
31
- import {
32
- VideoMeetingControllerComp ,
33
- client ,
34
- } from "./videoMeetingControllerComp" ;
31
+ import { client } from "./videoMeetingControllerComp" ;
35
32
36
33
import { IAgoraRTCRemoteUser } from "agora-rtc-sdk-ng" ;
37
34
38
35
import {
36
+ ControlParams ,
39
37
MeetingEventHandlerControl ,
38
+ SimpleComp ,
40
39
StringControl ,
41
40
StringStateControl ,
42
41
hiddenPropertyView ,
43
42
stringExposingStateControl ,
44
43
} from "@lowcoder-ee/index.sdk" ;
44
+ import { BoolShareVideoControl } from "./meetingControlerUtils" ;
45
45
46
46
const FormLabel = styled ( CommonBlueLabel ) `
47
47
font-size: 13px;
@@ -73,15 +73,7 @@ const TextContainer = styled.div<{ $style: any }>`
73
73
justify-content: center;
74
74
${ ( props ) => props . $style && getStyle ( props . $style ) }
75
75
` ;
76
- const ProfileImageContainer = styled . div < { $style : any } > `
77
- height: 100%;
78
- width: 100%;
79
- display: flex;
80
- align-items: center;
81
- position: absolute;
82
- justify-content: center;
83
- ${ ( props ) => props . $style && getStyle ( props . $style ) }
84
- ` ;
76
+
85
77
const VideoContainer = styled . video < { $style : any } > `
86
78
height: 100%;
87
79
width: 100%;
@@ -102,6 +94,7 @@ const getStyle = (style: any) => {
102
94
}
103
95
` ;
104
96
} ;
97
+
105
98
function getForm ( editorState : EditorState , formName : string ) {
106
99
const comp = editorState ?. getUICompByName ( formName ) ;
107
100
if ( comp && comp . children . compType . getView ( ) === "form" ) {
@@ -175,7 +168,7 @@ const typeOptions = [
175
168
176
169
export const meetingStreamChildren = {
177
170
autoHeight : withDefault ( AutoHeightControl , "fixed" ) ,
178
- shareScreen : withDefault ( BoolCodeControl , false ) ,
171
+ shareScreen : withDefault ( BoolShareVideoControl , false ) ,
179
172
profileImageHeight : withDefault ( StringControl , "300px" ) ,
180
173
profileImageWidth : withDefault ( StringControl , "300px" ) ,
181
174
type : dropdownControl ( typeOptions , "" ) ,
@@ -304,7 +297,7 @@ let VideoCompBuilder = (function (props) {
304
297
{ ( editorState ) => (
305
298
< ReactResizeDetector onResize = { onResize } >
306
299
< Container ref = { conRef } $style = { props . style } >
307
- { props . shareScreen || userId ? (
300
+ { userId ? (
308
301
< >
309
302
< VideoContainer
310
303
onClick = { ( ) => props . onEvent ( "videoClicked" ) }
@@ -360,6 +353,7 @@ let VideoCompBuilder = (function (props) {
360
353
label : trans ( "meeting.shareScreen" ) ,
361
354
} ) }
362
355
</ Section >
356
+
363
357
< Section name = { sectionNames . interaction } >
364
358
{ children . onEvent . getPropertyView ( ) }
365
359
</ Section >
0 commit comments