diff --git a/player/custom-embed.coffee b/player/custom-embed.coffee index 84bcb199..c608ac98 100644 --- a/player/custom-embed.coffee +++ b/player/custom-embed.coffee @@ -1,3 +1,10 @@ +DEFAULT_ERROR = 'You are currently connected via HTTPS but the embedded content + uses non-secure plain HTTP. Your browser therefore blocks it from + loading due to mixed content policy. To fix this, embed the video using a + secure link if available (https://...), or load this page over plain HTTP by + replacing "https://" with "http://" in the address bar (your websocket will + still be secured using HTTPS, but this will permit non-secure content to load).' + genParam = (name, value) -> $('').attr( name: name @@ -38,9 +45,19 @@ window.CustomEmbedPlayer = class CustomEmbedPlayer extends Player return object loadIframe: (embed) -> - iframe = $('