Skip to content

Commit

Permalink
Merge pull request #5986 from ant-media/revert-5974-disable-sending-a…
Browse files Browse the repository at this point in the history
…udio-level-by-default

Revert "Change the default setting from 'true' to 'false' for sending audio levels through the data channel"
  • Loading branch information
mekya authored Dec 29, 2023
2 parents 66d771c + 7d0a69d commit 4c742bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/antmedia/AppSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -2050,8 +2050,8 @@ public boolean isWriteStatsToDatastore() {
*
* Ant Media Server sends audio level 5 times in a second
*/
@Value("${sendAudioLevelToViewers:false}")
private boolean sendAudioLevelToViewers = false;
@Value("${sendAudioLevelToViewers:true}")
private boolean sendAudioLevelToViewers = true;

public void setWriteStatsToDatastore(boolean writeStatsToDatastore) {
this.writeStatsToDatastore = writeStatsToDatastore;
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/antmedia/test/AppSettingsUnitTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ public void testUnsetAppSettings(AppSettings appSettings) {
assertEquals(150, appSettings.getAbrUpScaleRTTMs(), 0.0001);
assertNotNull(appSettings.getClusterCommunicationKey());
assertEquals(false, appSettings.isId3TagEnabled());
assertEquals(false, appSettings.isSendAudioLevelToViewers());
assertEquals(true, appSettings.isSendAudioLevelToViewers());
assertNull(appSettings.getTimeTokenSecretForPublish());
assertNull(appSettings.getTimeTokenSecretForPlay());

Expand Down

0 comments on commit 4c742bb

Please sign in to comment.