From 25bc47f0e614a471c7b671ab6eb89cf608b29716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nerijus=20Bali=C5=ABnas?= Date: Tue, 9 Jan 2024 17:57:02 +0200 Subject: [PATCH] Add more options to embedded player --- src/output/output_http_internal.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/output/output_http_internal.cpp b/src/output/output_http_internal.cpp index 697ee6ff0..763913970 100644 --- a/src/output/output_http_internal.cpp +++ b/src/output/output_http_internal.cpp @@ -372,6 +372,21 @@ namespace Mist{ forceType = ",forceType:\"" + req.GetVar("forcetype") + "\""; } + std::string forcePlayer = ""; + if (req.GetVar("forceplayer").size()){ + forcePlayer = ",forcePlayer:\"" + req.GetVar("forceplayer") + "\""; + } + + std::string fillSpace = ""; + if (req.GetVar("fillspace").size()){ + fillSpace = ",fillSpace:" + req.GetVar("fillspace"); + } + + std::string controls = ""; + if (req.GetVar("controls").size()){ + controls = ",controls:\"" + req.GetVar("controls") + "\""; + } + std::string devSkin = ""; if (req.GetVar("dev").size()){devSkin = ",skin:\"dev\"";} devSkin += ",urlappend:\"" + req.allVars() + "\""; @@ -425,7 +440,7 @@ namespace Mist{ "\">Click here to play the video [MP4]"); + "'),MistVideoObject:mv" + forceType + forcePlayer + fillSpace + controls + devSkin + "});" + seekTo + ""); if ((uAgent.find("iPad") != std::string::npos) || (uAgent.find("iPod") != std::string::npos) || (uAgent.find("iPhone") != std::string::npos)){ if (uAgent.find("OS 11") == std::string::npos && uAgent.find("OS 12") == std::string::npos &&