@@ -211,9 +211,10 @@ let MTComp = (function () {
211211 videoSettings : jsonObjectExposingStateControl ( "" ) ,
212212 videoWidth : numberExposingStateControl ( "videoWidth" , 200 ) ,
213213 videoHeight : numberExposingStateControl ( "videoHeight" , 200 ) ,
214- appId : withDefault ( StringControl , trans ( "prop .appid" ) ) ,
214+ appId : withDefault ( StringControl , trans ( "meeting .appid" ) ) ,
215215 participants : stateComp < JSONValue > ( [ ] ) ,
216216 host : stringExposingStateControl ( "host" ) ,
217+ meetingName : stringExposingStateControl ( "meetingName" ) ,
217218 } ;
218219 return new ContainerCompBuilder ( childrenMap , ( props , dispatch ) => {
219220 const isTopBom = [ "top" , "bottom" ] . includes ( props . placement ) ;
@@ -316,7 +317,10 @@ let MTComp = (function () {
316317 . setPropertyViewFn ( ( children ) => (
317318 < >
318319 < 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+ } ) }
320324 { children . placement . propertyView ( {
321325 label : trans ( "drawer.placement" ) ,
322326 radioButton : true ,
@@ -417,7 +421,9 @@ MTComp = withMethodExposing(MTComp, [
417421 comp . children . host . change ( userId + "" ) ;
418422 await publishVideo (
419423 comp . children . appId . getView ( ) ,
420- "testsdaadasdsa" ,
424+ comp . children . meetingName . getView ( ) . value == ""
425+ ? userId + "_meetingId"
426+ : comp . children . meetingName . getView ( ) . value ,
421427 comp . children
422428 ) ;
423429 } ,
@@ -449,9 +455,10 @@ MTComp = withMethodExposing(MTComp, [
449455
450456export const VideoMeetingControllerComp = withExposingConfigs ( MTComp , [
451457 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" ) ) ,
455462] ) ;
456463
457464export function agoraClient ( ) {
0 commit comments