Track selector and language code support backported from Pro edition

This commit is contained in:
Thulinma 2019-04-29 14:08:31 +02:00
parent 58919a9346
commit 320c8ab29f
5 changed files with 792 additions and 2 deletions

View file

@ -234,6 +234,9 @@ namespace Mist {
crc = checksum::crc32(0, mixed_ua.data(), mixed_ua.size());
}
if (H.GetVar("audio") != ""){targetParams["audio"] = H.GetVar("audio");}
if (H.GetVar("video") != ""){targetParams["video"] = H.GetVar("video");}
if (H.GetVar("subtitle") != ""){targetParams["subtitle"] = H.GetVar("subtitle");}
//Handle upgrade to websocket if the output supports it
if (doesWebsockets() && H.GetHeader("Upgrade") == "websocket"){
INFO_MSG("Switching to Websocket mode");