@@ -37,6 +37,7 @@ import { IAgoraRTCRemoteUser } from "agora-rtc-sdk-ng";
37
37
38
38
import {
39
39
MeetingEventHandlerControl ,
40
+ StringStateControl ,
40
41
hiddenPropertyView ,
41
42
stringExposingStateControl ,
42
43
} from "@lowcoder-ee/index.sdk" ;
@@ -175,6 +176,10 @@ export const meetingStreamChildren = {
175
176
style : ButtonStyleControl ,
176
177
viewRef : RefControl < HTMLElement > ,
177
178
userId : stringExposingStateControl ( "" ) ,
179
+ profileImageUrl : withDefault (
180
+ StringStateControl ,
181
+ "https://via.placeholder.com/120"
182
+ ) ,
178
183
noVideoText : stringExposingStateControl ( "No Video" ) ,
179
184
} ;
180
185
@@ -299,9 +304,16 @@ let VideoCompBuilder = (function (props) {
299
304
< TextContainer
300
305
onClick = { ( ) => props . onEvent ( "videoClicked" ) }
301
306
ref = { placeholderRef }
302
- style = { { display : `${ ! showVideo ? "flex" : "none" } ` } }
307
+ style = { {
308
+ display : `${ ! showVideo ? "flex" : "none" } ` ,
309
+ flexDirection : "column" ,
310
+ } }
303
311
$style = { props . style }
304
312
>
313
+ < img
314
+ style = { { borderRadius : "50%" } }
315
+ src = { props . profileImageUrl . value }
316
+ />
305
317
{ userName ?? "No Username" }
306
318
</ TextContainer >
307
319
</ >
@@ -321,6 +333,10 @@ let VideoCompBuilder = (function (props) {
321
333
< >
322
334
< Section name = { sectionNames . basic } >
323
335
{ children . userId . propertyView ( { label : trans ( "meeting.videoId" ) } ) }
336
+ { children . profileImageUrl . propertyView ( {
337
+ label : trans ( "meeting.profileImageUrl" ) ,
338
+ placeholder : "https://via.placeholder.com/120" ,
339
+ } ) }
324
340
{ children . autoHeight . getPropertyView ( ) }
325
341
{ children . shareScreen . propertyView ( {
326
342
label : trans ( "meeting.shareScreen" ) ,
@@ -348,5 +364,7 @@ VideoCompBuilder = class extends VideoCompBuilder {
348
364
349
365
export const VideoMeetingStreamComp = withExposingConfigs ( VideoCompBuilder , [
350
366
new NameConfig ( "loading" , trans ( "button.loadingDesc" ) ) ,
367
+ new NameConfig ( "profileImageUrl" , trans ( "meeting.profileImageUrl" ) ) ,
368
+
351
369
...CommonNameConfig ,
352
370
] ) ;
0 commit comments