From 787b437479b94697c0294d8e6ac6bdb2bd79f110 Mon Sep 17 00:00:00 2001 From: Markos Calderon Date: Thu, 21 Mar 2013 16:50:30 -0500 Subject: [PATCH] fix setting h264 level --- .../modules/videoconf/business/VideoProxy.as | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/videoconf/business/VideoProxy.as b/bigbluebutton-client/src/org/bigbluebutton/modules/videoconf/business/VideoProxy.as index fb7ee873ac..487c6b4ce8 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/videoconf/business/VideoProxy.as +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/videoconf/business/VideoProxy.as @@ -119,40 +119,42 @@ package org.bigbluebutton.modules.videoconf.business h264profile = H264Profile.BASELINE; } var h264Level:String = H264Level.LEVEL_4_1; - if (videoOptions.h264Level != "1") { + if (videoOptions.h264Level == "1") { h264Level = H264Level.LEVEL_1; - } else if (videoOptions.h264Level != "1.1") { + } else if (videoOptions.h264Level == "1.1") { h264Level = H264Level.LEVEL_1_1; - } else if (videoOptions.h264Level != "1.2") { + } else if (videoOptions.h264Level == "1.2") { h264Level = H264Level.LEVEL_1_2; - } else if (videoOptions.h264Level != "1.3") { + } else if (videoOptions.h264Level == "1.3") { h264Level = H264Level.LEVEL_1_3; - } else if (videoOptions.h264Level != "1b") { + } else if (videoOptions.h264Level == "1b") { h264Level = H264Level.LEVEL_1B; - } else if (videoOptions.h264Level != "2") { + } else if (videoOptions.h264Level == "2") { h264Level = H264Level.LEVEL_2; - } else if (videoOptions.h264Level != "2.1") { + } else if (videoOptions.h264Level == "2.1") { h264Level = H264Level.LEVEL_2_1; - } else if (videoOptions.h264Level != "2.2") { + } else if (videoOptions.h264Level == "2.2") { h264Level = H264Level.LEVEL_2_2; - } else if (videoOptions.h264Level != "3") { + } else if (videoOptions.h264Level == "3") { h264Level = H264Level.LEVEL_3; - } else if (videoOptions.h264Level != "3.1") { + } else if (videoOptions.h264Level == "3.1") { h264Level = H264Level.LEVEL_3_1; - } else if (videoOptions.h264Level != "3.2") { + } else if (videoOptions.h264Level == "3.2") { h264Level = H264Level.LEVEL_3_2; - } else if (videoOptions.h264Level != "4") { + } else if (videoOptions.h264Level == "4") { h264Level = H264Level.LEVEL_4; - } else if (videoOptions.h264Level != "4.1") { + } else if (videoOptions.h264Level == "4.1") { h264Level = H264Level.LEVEL_4_1; - } else if (videoOptions.h264Level != "4.2") { + } else if (videoOptions.h264Level == "4.2") { h264Level = H264Level.LEVEL_4_2; - } else if (videoOptions.h264Level != "5") { + } else if (videoOptions.h264Level == "5") { h264Level = H264Level.LEVEL_5; - } else if (videoOptions.h264Level != "5.1") { + } else if (videoOptions.h264Level == "5.1") { h264Level = H264Level.LEVEL_5_1; } + LogUtil.info("Codec used: " + h264Level); + h264.setProfileLevel(h264profile, h264Level); ns.videoStreamSettings = h264; }