@@ -211,9 +211,10 @@ let MTComp = (function () {
211
211
videoSettings : jsonObjectExposingStateControl ( "" ) ,
212
212
videoWidth : numberExposingStateControl ( "videoWidth" , 200 ) ,
213
213
videoHeight : numberExposingStateControl ( "videoHeight" , 200 ) ,
214
- appId : withDefault ( StringControl , trans ( "prop .appid" ) ) ,
214
+ appId : withDefault ( StringControl , trans ( "meeting .appid" ) ) ,
215
215
participants : stateComp < JSONValue > ( [ ] ) ,
216
216
host : stringExposingStateControl ( "host" ) ,
217
+ meetingName : stringExposingStateControl ( "meetingName" ) ,
217
218
} ;
218
219
return new ContainerCompBuilder ( childrenMap , ( props , dispatch ) => {
219
220
const isTopBom = [ "top" , "bottom" ] . includes ( props . placement ) ;
@@ -316,7 +317,10 @@ let MTComp = (function () {
316
317
. setPropertyViewFn ( ( children ) => (
317
318
< >
318
319
< Section name = { sectionNames . basic } >
319
- { children . appId . propertyView ( { label : trans ( "prop.appid" ) } ) }
320
+ { children . appId . propertyView ( { label : trans ( "meeting.appid" ) } ) }
321
+ { children . meetingName . propertyView ( {
322
+ label : trans ( "meeting.meetingName" ) ,
323
+ } ) }
320
324
{ children . placement . propertyView ( {
321
325
label : trans ( "drawer.placement" ) ,
322
326
radioButton : true ,
@@ -417,7 +421,9 @@ MTComp = withMethodExposing(MTComp, [
417
421
comp . children . host . change ( userId + "" ) ;
418
422
await publishVideo (
419
423
comp . children . appId . getView ( ) ,
420
- "testsdaadasdsa" ,
424
+ comp . children . meetingName . getView ( ) . value == ""
425
+ ? userId + "_meetingId"
426
+ : comp . children . meetingName . getView ( ) . value ,
421
427
comp . children
422
428
) ;
423
429
} ,
@@ -449,9 +455,10 @@ MTComp = withMethodExposing(MTComp, [
449
455
450
456
export const VideoMeetingControllerComp = withExposingConfigs ( MTComp , [
451
457
new NameConfig ( "visible" , trans ( "export.visibleDesc" ) ) ,
452
- new NameConfig ( "appId" , trans ( "prop.appid" ) ) ,
453
- new NameConfig ( "host" , trans ( "prop.appid" ) ) ,
454
- new NameConfig ( "participants" , trans ( "prop.participants" ) ) ,
458
+ new NameConfig ( "appId" , trans ( "meeting.appid" ) ) ,
459
+ new NameConfig ( "host" , trans ( "meeting.host" ) ) ,
460
+ new NameConfig ( "participants" , trans ( "meeting.participants" ) ) ,
461
+ new NameConfig ( "meetingName" , trans ( "meeting.meetingName" ) ) ,
455
462
] ) ;
456
463
457
464
export function agoraClient ( ) {
0 commit comments