|
|
@@ -1999,6 +1999,28 @@ JitsiConference.prototype.setLocalParticipantProperty = function(name, value) {
|
|
1999
|
1999
|
this.sendCommand(`jitsi_participant_${name}`, { value });
|
|
2000
|
2000
|
};
|
|
2001
|
2001
|
|
|
|
2002
|
+/**
|
|
|
2003
|
+ * Removes a property for the local participant and sends the updated presence.
|
|
|
2004
|
+ */
|
|
|
2005
|
+JitsiConference.prototype.removeLocalParticipantProperty = function(name) {
|
|
|
2006
|
+ this.removeCommand(`jitsi_participant_${name}`);
|
|
|
2007
|
+ this.room.sendPresence();
|
|
|
2008
|
+};
|
|
|
2009
|
+
|
|
|
2010
|
+/**
|
|
|
2011
|
+ * Gets a local participant property.
|
|
|
2012
|
+ *
|
|
|
2013
|
+ * @return value of the local participant property if the tagName exists in the
|
|
|
2014
|
+ * list of properties, otherwise returns undefined.
|
|
|
2015
|
+ */
|
|
|
2016
|
+JitsiConference.prototype.getLocalParticipantProperty = function(name) {
|
|
|
2017
|
+ const property = this.room.presMap.nodes.find(prop =>
|
|
|
2018
|
+ prop.tagName === `jitsi_participant_${name}`
|
|
|
2019
|
+ );
|
|
|
2020
|
+
|
|
|
2021
|
+ return property ? property.value : undefined;
|
|
|
2022
|
+};
|
|
|
2023
|
+
|
|
2002
|
2024
|
/**
|
|
2003
|
2025
|
* Sends the given feedback through CallStats if enabled.
|
|
2004
|
2026
|
*
|