Commit 08b11036 authored by Éloi Bail's avatar Éloi Bail Committed by gerrit2

tools/dringctrl: change bitrate only on video

Do not change bitrate on audio codecs. Only video

Issue: #80498
Change-Id: I6d305de2d3ba2156644a2f0ad72adb8efef72227
parent 87917f1e
......@@ -452,13 +452,14 @@ class DRingCtrl(Thread):
account = self._valid_account(account)
return [int(x) for x in self.configurationmanager.getActiveCodecList(account)]
def setCodecBitrate(self, account, bitrate):
def setVideoCodecBitrate(self, account, bitrate):
""" Change bitrate for all codecs on given account"""
for codecId in self.configurationmanager.getActiveCodecList(account):
details = self.configurationmanager.getCodecDetails(account, codecId)
details['CodecInfo.bitrate'] = str(bitrate)
self.configurationmanager.setCodecDetails(account, codecId, details)
if details['CodecInfo.type'] == 'VIDEO':
self.configurationmanager.setCodecDetails(account, codecId, details)
#
# Call management
#
......
......@@ -165,7 +165,7 @@ class DRingTester():
self.setActiveCodecs(ctrl, self.dhtAccountId)
print("setting video bitrate to "+str(currBitrate))
ctrl.setCodecBitrate(self.dhtAccountId, currBitrate)
ctrl.setVideoCodecBitrate(self.dhtAccountId, currBitrate)
callId = ctrl.Call(self.dhtTestAccount)
......@@ -229,7 +229,7 @@ class DRingTester():
self.setActiveCodecs(ctrl, self.dhtAccountId)
print("setting video bitrate to "+str(currBitrate))
ctrl.setCodecBitrate(self.dhtAccountId, currBitrate)
ctrl.setVideoCodecBitrate(self.dhtAccountId, currBitrate)
callId = ctrl.Call(self.dhtTestAccount)
......
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