Browse Source

Adds a disco feature to distinguish jibri participants.

master
damencho 5 years ago
parent
commit
15fb8a1525
1 changed files with 11 additions and 0 deletions
  1. 11
    0
      connection.js

+ 11
- 0
connection.js View File

@@ -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,

Loading…
Cancel
Save