|
@@ -15,6 +15,13 @@ import {
|
15
|
15
|
|
16
|
16
|
const logger = require('jitsi-meet-logger').getLogger(__filename);
|
17
|
17
|
|
|
18
|
+/**
|
|
19
|
+ * The feature announced so we can distinguish jibri participants.
|
|
20
|
+ *
|
|
21
|
+ * @type {string}
|
|
22
|
+ */
|
|
23
|
+export const DISCO_JIBRI_FEATURE = 'http://jitsi.org/protocol/jibri';
|
|
24
|
+
|
18
|
25
|
/**
|
19
|
26
|
* Checks if we have data to use attach instead of connect. If we have the data
|
20
|
27
|
* executes attach otherwise check if we have to wait for the data. If we have
|
|
@@ -91,6 +98,10 @@ function connect(id, password, roomName) {
|
91
|
98
|
jwt && issuer && issuer !== 'anonymous' ? jwt : undefined,
|
92
|
99
|
connectionConfig);
|
93
|
100
|
|
|
101
|
+ if (config.iAmRecorder) {
|
|
102
|
+ connection.addFeature(DISCO_JIBRI_FEATURE);
|
|
103
|
+ }
|
|
104
|
+
|
94
|
105
|
return new Promise((resolve, reject) => {
|
95
|
106
|
connection.addEventListener(
|
96
|
107
|
JitsiConnectionEvents.CONNECTION_ESTABLISHED,
|