Skip to content

Commit 0111a65

Browse files
committed
ensure video players other than youtube don't embed videos either
1 parent ebf47b8 commit 0111a65

File tree

1 file changed

+2
-2
lines changed
  • src/resources/extensions/quarto/video

1 file changed

+2
-2
lines changed

src/resources/extensions/quarto/video/video.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ local brightcoveBuilder = function(params)
104104

105105
local result = {}
106106

107-
local SNIPPET = [[<iframe src="{src}"{width}{height} allowfullscreen="" title="{title}" allow="encrypted-media"></iframe>]]
107+
local SNIPPET = [[<iframe data-external="1" src="{src}"{width}{height} allowfullscreen="" title="{title}" allow="encrypted-media"></iframe>]]
108108
result.snippet = replaceCommonAttributes(SNIPPET, params)
109109
result.type = VIDEO_TYPES.BRIGHTCOVE
110110
result.src = params.src
@@ -120,7 +120,7 @@ local vimeoBuilder = function(params)
120120

121121
params.src = 'https://player.vimeo.com/video/' .. match
122122

123-
local SNIPPET = [[<iframe src="{src}"{width}{height} frameborder="0" allow="autoplay; title="{title}" fullscreen; picture-in-picture" allowfullscreen></iframe>]]
123+
local SNIPPET = [[<iframe data-external="1" src="{src}"{width}{height} frameborder="0" allow="autoplay; title="{title}" fullscreen; picture-in-picture" allowfullscreen></iframe>]]
124124

125125
local result = {}
126126

0 commit comments

Comments
 (0)