mirror of
https://github.com/netzbegruenung/jitsi-meet-electron.git
synced 2024-05-04 01:33:42 +02:00
Attach external API listeners early
This avoids any problems caused by the initialization of any of the extra services initialization failures.
This commit is contained in:
parent
a1ec905ff3
commit
328ff76016
|
@ -270,6 +270,16 @@ class Conference extends Component<Props, State> {
|
|||
...urlParameters
|
||||
});
|
||||
|
||||
|
||||
this._api.on('suspendDetected', this._onVideoConferenceEnded);
|
||||
this._api.on('readyToClose', this._onVideoConferenceEnded);
|
||||
this._api.on('videoConferenceJoined',
|
||||
(conferenceInfo: Object) => {
|
||||
this.props.dispatch(conferenceJoined(this._conference));
|
||||
this._onVideoConferenceJoined(conferenceInfo);
|
||||
}
|
||||
);
|
||||
|
||||
const { RemoteControl,
|
||||
setupScreenSharingRender,
|
||||
setupAlwaysOnTopRender,
|
||||
|
@ -292,15 +302,6 @@ class Conference extends Component<Props, State> {
|
|||
|
||||
setupWiFiStats(iframe);
|
||||
setupPowerMonitorRender(this._api);
|
||||
|
||||
this._api.on('suspendDetected', this._onVideoConferenceEnded);
|
||||
this._api.on('readyToClose', this._onVideoConferenceEnded);
|
||||
this._api.on('videoConferenceJoined',
|
||||
(conferenceInfo: Object) => {
|
||||
this.props.dispatch(conferenceJoined(this._conference));
|
||||
this._onVideoConferenceJoined(conferenceInfo);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
_onVideoConferenceEnded: (*) => void;
|
||||
|
|
Loading…
Reference in a new issue