diff --git a/src/switch_core_media.c b/src/switch_core_media.c
index 33de186..d166dff 100644
--- a/src/switch_core_media.c
+++ b/src/switch_core_media.c
@@ -2735,6 +2735,25 @@ static void switch_core_session_parse_codec_settings(switch_core_session_t *sess
uint32_t system_bw = 0;
const char *var = NULL, *bwv;
+ if ((var = switch_channel_get_variable(session->channel, "video_resolution"))) {
+ int width = 0, height = 0;
+ char *p;
+
+ if ((width = atoi(var))) {
+ if ((p = strchr(var, 'x'))) {
+ p++;
+ if (*p) {
+ height = atoi(p);
+ }
+ }
+ }
+
+ if (width != 0 && height != 0) {
+ engine->codec_settings.video.width = width;
+ engine->codec_settings.video.height = height;
+ }
+ }
+
if ((var = switch_channel_get_variable(session->channel, "video_try_hardware_encoder"))) {
engine->codec_settings.video.try_hardware_encoder = switch_true(var);
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}