File tree 1 file changed +12
-2
lines changed 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1299,8 +1299,18 @@ export default class DefaultAudioVideoController
1299
1299
1300
1300
/* istanbul ignore next: toString is optional */
1301
1301
const meetingErrorMessage = ( error && error . message ) || status . toString ?.( ) || '' ;
1302
- attributes . meetingErrorMessage = meetingErrorMessage ;
1303
- this . eventController . publishEvent ( 'meetingFailed' , attributes ) ;
1302
+ if ( this . meetingSessionContext . startTimeMs === null ) {
1303
+ attributes . meetingErrorMessage = meetingErrorMessage ;
1304
+ delete attributes . meetingDurationMs ;
1305
+ delete attributes . attendeePresenceDurationMs ;
1306
+ delete attributes . meetingStartDurationMs ;
1307
+ this . eventController . publishEvent ( 'meetingStartFailed' , attributes ) ;
1308
+ } else if ( status . isFailure ( ) || status . isAudioConnectionFailure ( ) ) {
1309
+ attributes . meetingErrorMessage = meetingErrorMessage ;
1310
+ this . eventController . publishEvent ( 'meetingFailed' , attributes ) ;
1311
+ } else {
1312
+ this . eventController . publishEvent ( 'meetingEnded' , attributes ) ;
1313
+ }
1304
1314
}
1305
1315
}
1306
1316
You can’t perform that action at this time.
0 commit comments