@@ -37,6 +37,7 @@ import { IAgoraRTCRemoteUser } from "agora-rtc-sdk-ng";
3737
3838import {
3939 MeetingEventHandlerControl ,
40+ StringStateControl ,
4041 hiddenPropertyView ,
4142 stringExposingStateControl ,
4243} from "@lowcoder-ee/index.sdk" ;
@@ -175,6 +176,10 @@ export const meetingStreamChildren = {
175176 style : ButtonStyleControl ,
176177 viewRef : RefControl < HTMLElement > ,
177178 userId : stringExposingStateControl ( "" ) ,
179+ profileImageUrl : withDefault (
180+ StringStateControl ,
181+ "https://via.placeholder.com/120"
182+ ) ,
178183 noVideoText : stringExposingStateControl ( "No Video" ) ,
179184} ;
180185
@@ -299,9 +304,16 @@ let VideoCompBuilder = (function (props) {
299304 < TextContainer
300305 onClick = { ( ) => props . onEvent ( "videoClicked" ) }
301306 ref = { placeholderRef }
302- style = { { display : `${ ! showVideo ? "flex" : "none" } ` } }
307+ style = { {
308+ display : `${ ! showVideo ? "flex" : "none" } ` ,
309+ flexDirection : "column" ,
310+ } }
303311 $style = { props . style }
304312 >
313+ < img
314+ style = { { borderRadius : "50%" } }
315+ src = { props . profileImageUrl . value }
316+ />
305317 { userName ?? "No Username" }
306318 </ TextContainer >
307319 </ >
@@ -321,6 +333,10 @@ let VideoCompBuilder = (function (props) {
321333 < >
322334 < Section name = { sectionNames . basic } >
323335 { children . userId . propertyView ( { label : trans ( "meeting.videoId" ) } ) }
336+ { children . profileImageUrl . propertyView ( {
337+ label : trans ( "meeting.profileImageUrl" ) ,
338+ placeholder : "https://via.placeholder.com/120" ,
339+ } ) }
324340 { children . autoHeight . getPropertyView ( ) }
325341 { children . shareScreen . propertyView ( {
326342 label : trans ( "meeting.shareScreen" ) ,
@@ -348,5 +364,7 @@ VideoCompBuilder = class extends VideoCompBuilder {
348364
349365export const VideoMeetingStreamComp = withExposingConfigs ( VideoCompBuilder , [
350366 new NameConfig ( "loading" , trans ( "button.loadingDesc" ) ) ,
367+ new NameConfig ( "profileImageUrl" , trans ( "meeting.profileImageUrl" ) ) ,
368+
351369 ...CommonNameConfig ,
352370] ) ;
0 commit comments