add autoplay attribute to custom embed iframe tag, so autoplay works as expected

calzone said i should make a pull request. so here it is.
it would be great if 'allow="autoplay"' attribute is added to the generated iframe for custom embeds.
so autoplay works as expected.
This commit is contained in:
mrx1983 2019-06-09 15:05:13 +02:00 committed by Calvin Montgomery
parent 5a2494adcf
commit 959ef89c27
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ window.EmbedPlayer = class EmbedPlayer extends Player
iframe = $('<iframe/>').attr(
src: embed.src
frameborder: '0'
allow: 'autoplay'
allowfullscreen: '1'
)