|
@@ -166,9 +166,6 @@ export default class ChatRoom extends Listenable {
|
166
|
166
|
// here.
|
167
|
167
|
this.addVideoInfoToPresence(false);
|
168
|
168
|
|
169
|
|
- // Set the default codec.
|
170
|
|
- this.addCodecInfoToPresence(options.preferredCodec);
|
171
|
|
-
|
172
|
169
|
if (options.deploymentInfo && options.deploymentInfo.userRegion) {
|
173
|
170
|
this.presMap.nodes.push({
|
174
|
171
|
'tagName': 'region',
|
|
@@ -1559,37 +1556,6 @@ export default class ChatRoom extends Listenable {
|
1559
|
1556
|
this.sendPresence();
|
1560
|
1557
|
}
|
1561
|
1558
|
|
1562
|
|
- /**
|
1563
|
|
- * Add the codec key to the presence map.
|
1564
|
|
- *
|
1565
|
|
- * @param {string} codec - the mime type of the codec that needs to be
|
1566
|
|
- * published via presence to other users in the conference.
|
1567
|
|
- *
|
1568
|
|
- * @returns {void}
|
1569
|
|
- */
|
1570
|
|
- addCodecInfoToPresence(codec) {
|
1571
|
|
- this.addToPresence(
|
1572
|
|
- 'codecType',
|
1573
|
|
- {
|
1574
|
|
- attributes: { 'xmlns': 'http://jitsi.org/jitmeet/codec' },
|
1575
|
|
- value: codec.toString()
|
1576
|
|
- });
|
1577
|
|
- }
|
1578
|
|
-
|
1579
|
|
- /**
|
1580
|
|
- * Adds the codec key to presence map and sends the presence info
|
1581
|
|
- * to the room.
|
1582
|
|
- *
|
1583
|
|
- * @param {string} codec - the mime type of the codec that needs to be
|
1584
|
|
- * published via presence to other users in the conference.
|
1585
|
|
- *
|
1586
|
|
- * @returns {void}
|
1587
|
|
- */
|
1588
|
|
- sendCodecInfoPresence(codec) {
|
1589
|
|
- this.addCodecInfoToPresence(codec);
|
1590
|
|
- this.sendPresence();
|
1591
|
|
- }
|
1592
|
|
-
|
1593
|
1559
|
/**
|
1594
|
1560
|
* Obtains the info about given media advertised in the MUC presence of
|
1595
|
1561
|
* the participant identified by the given endpoint JID.
|
|
@@ -1619,7 +1585,7 @@ export default class ChatRoom extends Listenable {
|
1619
|
1585
|
mutedNode = filterNodeFromPresenceJSON(pres, 'audiomuted');
|
1620
|
1586
|
} else if (mediaType === MediaType.VIDEO) {
|
1621
|
1587
|
mutedNode = filterNodeFromPresenceJSON(pres, 'videomuted');
|
1622
|
|
- const codecTypeNode = filterNodeFromPresenceJSON(pres, 'codecType');
|
|
1588
|
+ const codecTypeNode = filterNodeFromPresenceJSON(pres, 'jitsi_participant_codecType');
|
1623
|
1589
|
const videoTypeNode = filterNodeFromPresenceJSON(pres, 'videoType');
|
1624
|
1590
|
|
1625
|
1591
|
if (videoTypeNode.length > 0) {
|