Commit 64e82b88 authored by Saul Ibarra's avatar Saul Ibarra

Enabled opus codec in the UI

parent d4036689
...@@ -54,7 +54,7 @@ class LogsSettingsExtension(LogsSettings): ...@@ -54,7 +54,7 @@ class LogsSettingsExtension(LogsSettings):
class RTPSettingsExtension(RTPSettings): class RTPSettingsExtension(RTPSettings):
audio_codec_order = Setting(type=AudioCodecList, default=AudioCodecList(('G722', 'speex', 'GSM', 'iLBC', 'PCMU', 'PCMA'))) audio_codec_order = Setting(type=AudioCodecList, default=AudioCodecList(('opus', 'speex', 'G722', 'GSM', 'iLBC', 'PCMU', 'PCMA')))
class ServerSettings(SettingsGroup): class ServerSettings(SettingsGroup):
......
...@@ -239,6 +239,19 @@ ...@@ -239,6 +239,19 @@
<property name="margin"> <property name="margin">
<number>10</number> <number>10</number>
</property> </property>
<item row="2" column="1">
<widget class="QListWidget" name="account_video_codecs_list">
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="dragEnabled">
<bool>true</bool>
</property>
<property name="dragDropMode">
<enum>QAbstractItemView::InternalMove</enum>
</property>
</widget>
</item>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="account_audio_codecs_label"> <widget class="QLabel" name="account_audio_codecs_label">
<property name="font"> <property name="font">
...@@ -279,86 +292,6 @@ ...@@ -279,86 +292,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0">
<widget class="QListWidget" name="account_audio_codecs_list">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="dragEnabled">
<bool>true</bool>
</property>
<property name="dragDropMode">
<enum>QAbstractItemView::InternalMove</enum>
</property>
<item>
<property name="text">
<string>G722</string>
</property>
<property name="checkState">
<enum>Checked</enum>
</property>
</item>
<item>
<property name="text">
<string>speex</string>
</property>
<property name="checkState">
<enum>Checked</enum>
</property>
</item>
<item>
<property name="text">
<string>GSM</string>
</property>
<property name="checkState">
<enum>Unchecked</enum>
</property>
</item>
<item>
<property name="text">
<string>iLBC</string>
</property>
<property name="checkState">
<enum>Unchecked</enum>
</property>
</item>
<item>
<property name="text">
<string>PCMU</string>
</property>
<property name="checkState">
<enum>Checked</enum>
</property>
</item>
<item>
<property name="text">
<string>PCMA</string>
</property>
<property name="checkState">
<enum>Checked</enum>
</property>
</item>
</widget>
</item>
<item row="2" column="1">
<widget class="QListWidget" name="account_video_codecs_list">
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="dragEnabled">
<bool>true</bool>
</property>
<property name="dragDropMode">
<enum>QAbstractItemView::InternalMove</enum>
</property>
</widget>
</item>
<item row="3" column="0" colspan="2"> <item row="3" column="0" colspan="2">
<widget class="QWidget" name="reset_buttons_widget" native="true"> <widget class="QWidget" name="reset_buttons_widget" native="true">
<layout class="QHBoxLayout" name="reset_buttons_widget_layout"> <layout class="QHBoxLayout" name="reset_buttons_widget_layout">
...@@ -505,6 +438,81 @@ ...@@ -505,6 +438,81 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="2" column="0">
<widget class="QListWidget" name="account_audio_codecs_list">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="dragEnabled">
<bool>true</bool>
</property>
<property name="dragDropMode">
<enum>QAbstractItemView::InternalMove</enum>
</property>
<item>
<property name="text">
<string>opus</string>
</property>
<property name="checkState">
<enum>Checked</enum>
</property>
</item>
<item>
<property name="text">
<string>speex</string>
</property>
<property name="checkState">
<enum>Checked</enum>
</property>
</item>
<item>
<property name="text">
<string>G722</string>
</property>
<property name="checkState">
<enum>Checked</enum>
</property>
</item>
<item>
<property name="text">
<string>GSM</string>
</property>
<property name="checkState">
<enum>Unchecked</enum>
</property>
</item>
<item>
<property name="text">
<string>iLBC</string>
</property>
<property name="checkState">
<enum>Unchecked</enum>
</property>
</item>
<item>
<property name="text">
<string>PCMU</string>
</property>
<property name="checkState">
<enum>Checked</enum>
</property>
</item>
<item>
<property name="text">
<string>PCMA</string>
</property>
<property name="checkState">
<enum>Checked</enum>
</property>
</item>
</widget>
</item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="server_settings_tab"> <widget class="QWidget" name="server_settings_tab">
...@@ -1561,7 +1569,7 @@ ...@@ -1561,7 +1569,7 @@
</property> </property>
<item> <item>
<property name="text"> <property name="text">
<string>G722</string> <string>opus</string>
</property> </property>
<property name="checkState"> <property name="checkState">
<enum>Checked</enum> <enum>Checked</enum>
...@@ -1575,6 +1583,14 @@ ...@@ -1575,6 +1583,14 @@
<enum>Checked</enum> <enum>Checked</enum>
</property> </property>
</item> </item>
<item>
<property name="text">
<string>G722</string>
</property>
<property name="checkState">
<enum>Checked</enum>
</property>
</item>
<item> <item>
<property name="text"> <property name="text">
<string>GSM</string> <string>GSM</string>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment