revert back to www.youtube.com when client_config.screen embed

This commit is contained in:
Emilien 2024-11-08 21:56:48 +01:00
parent 82b1506ccc
commit f3e93ca83d

View File

@ -300,9 +300,8 @@ module YoutubeAPI
end
if client_config.screen == "EMBED"
# embedUrl https://www.google.com allow loading almost all video that are configured not embeddable
client_context["thirdParty"] = {
"embedUrl" => "https://www.google.com/",
"embedUrl" => "https://www.youtube.com/embed/#{video_id}",
} of String => String | Int64
end