Added support for still playing http addresses via html producer bu using [HTML] as the first parameter. So for example:
PLAY 1-10 [HTML] http://www.casparcg.com
{
const auto filename = env::template_folder() + L"\\" + params.at_original(0) + L".html";
- if (!boost::filesystem::exists(filename))
+ if (!boost::filesystem::exists(filename) && params.at(0) != L"[HTML]")
return core::frame_producer::empty();
const auto url = boost::filesystem::exists(filename)
- ? filename
- : params.at_original(0);
+ ? filename
+ : params.at_original(1);
if(!boost::algorithm::contains(url, ".") || boost::algorithm::ends_with(url, "_A") || boost::algorithm::ends_with(url, "_ALPHA"))
return core::frame_producer::empty();