@@ -37,6 +37,7 @@ import { IAgoraRTCRemoteUser } from "agora-rtc-sdk-ng";
37
37
38
38
import {
39
39
MeetingEventHandlerControl ,
40
+ StringControl ,
40
41
StringStateControl ,
41
42
hiddenPropertyView ,
42
43
stringExposingStateControl ,
@@ -72,6 +73,15 @@ const TextContainer = styled.div<{ $style: any }>`
72
73
justify-content: center;
73
74
${ ( props ) => props . $style && getStyle ( props . $style ) }
74
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
+ ` ;
75
85
const VideoContainer = styled . video < { $style : any } > `
76
86
height: 100%;
77
87
width: 100%;
@@ -166,6 +176,8 @@ const typeOptions = [
166
176
export const meetingStreamChildren = {
167
177
autoHeight : withDefault ( AutoHeightControl , "fixed" ) ,
168
178
shareScreen : withDefault ( BoolCodeControl , false ) ,
179
+ profileImageHeight : withDefault ( StringControl , "300px" ) ,
180
+ profileImageWidth : withDefault ( StringControl , "300px" ) ,
169
181
type : dropdownControl ( typeOptions , "" ) ,
170
182
onEvent : MeetingEventHandlerControl ,
171
183
disabled : BoolCodeControl ,
@@ -311,16 +323,26 @@ let VideoCompBuilder = (function (props) {
311
323
$style = { props . style }
312
324
>
313
325
< img
314
- style = { { borderRadius : "50%" } }
326
+ style = { {
327
+ borderRadius : "50%" ,
328
+ width : props . profileImageWidth ,
329
+ height : props . profileImageHeight ,
330
+ } }
315
331
src = { props . profileImageUrl . value }
316
332
/>
317
333
{ userName ?? "No Username" }
318
334
</ TextContainer >
319
335
</ >
320
336
) : (
321
- // )
322
337
< TextContainer $style = { props . style } >
323
- < p > No Video</ p >
338
+ < img
339
+ style = { {
340
+ borderRadius : "50%" ,
341
+ width : props . profileImageWidth ,
342
+ height : props . profileImageHeight ,
343
+ } }
344
+ src = { props . profileImageUrl . value }
345
+ />
324
346
</ TextContainer >
325
347
) }
326
348
</ Container >
@@ -333,10 +355,6 @@ let VideoCompBuilder = (function (props) {
333
355
< >
334
356
< Section name = { sectionNames . basic } >
335
357
{ children . userId . propertyView ( { label : trans ( "meeting.videoId" ) } ) }
336
- { children . profileImageUrl . propertyView ( {
337
- label : trans ( "meeting.profileImageUrl" ) ,
338
- placeholder : "https://via.placeholder.com/120" ,
339
- } ) }
340
358
{ children . autoHeight . getPropertyView ( ) }
341
359
{ children . shareScreen . propertyView ( {
342
360
label : trans ( "meeting.shareScreen" ) ,
@@ -349,6 +367,14 @@ let VideoCompBuilder = (function (props) {
349
367
{ hiddenPropertyView ( children ) }
350
368
</ Section >
351
369
< Section name = { sectionNames . style } >
370
+ { children . profileImageUrl . propertyView ( {
371
+ label : trans ( "meeting.profileImageUrl" ) ,
372
+ placeholder : "https://via.placeholder.com/120" ,
373
+ } ) }
374
+ { children . profileImageHeight . propertyView ( {
375
+ label : "Profile Height" ,
376
+ } ) }
377
+ { children . profileImageWidth . propertyView ( { label : "Profile Width" } ) }
352
378
{ children . style . getPropertyView ( ) }
353
379
</ Section >
354
380
</ >
0 commit comments