Skip to content

Commit

Permalink
Recognize jitsi_participant_codecList as an xmpp extension.
Browse files Browse the repository at this point in the history
Add VISITOR_CODECS to ConferenceProperties.
  • Loading branch information
JonathanLennox committed Feb 23, 2024
1 parent 62d03d4 commit 33b8e30
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ public class ConferenceProperties
*/
public static final String KEY_VISITOR_COUNT = "visitor-count";

/**
* The property key used to indicate the set of video codecs supported by all visitors
* currently in the conference
*/
public static final String KEY_VISITOR_CODECS = "visitor-codecs";

/**
* The property key used to signal support for session restart to the current conference.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright @ 2023 - present 8x8, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jitsi.xmpp.extensions.jitsimeet

import org.jitsi.xmpp.extensions.AbstractPacketExtension

class JitsiParticipantCodecList : AbstractPacketExtension(NAMESPACE, ELEMENT) {
var codecs: List<String>
get() = text?.lowercase()?.split(',') ?: emptyList()
set(value) {
text = value.joinToString(separator = ",").lowercase()
}

companion object {
const val ELEMENT = "jitsi_participant_codecList"
const val NAMESPACE = "jabber:client"
}
}

0 comments on commit 33b8e30

Please sign in to comment.