You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/plugins/validators/sync/06_autoplay.js
+48-70Lines changed: 48 additions & 70 deletions
Original file line number
Diff line number
Diff line change
@@ -23,80 +23,58 @@ export default {
23
23
// create autoplay variant of the player if requested via link.autoplay attribute
24
24
if(link.href&&link.rel.indexOf(CONFIG.R.player)>-1&&link.autoplay&&typeoflink.autoplay==="string"&&link.autoplay.indexOf('=')>-1){// it should always be a query-string
25
25
26
-
varplay=link.autoplay;
27
-
// don't need this field any longer
26
+
constplay_querystring=link.autoplay;// e.g. 'autoplay=1'
28
27
deletelink.autoplay;
29
-
30
-
/**
31
-
* Three cases:
32
-
* 1) Link does not autoplay by default. We need to add an autoplay with autoplay=1.
33
-
* 2) Link autoplays:
34
-
* - with autoplay=1 in src, maybe with no autoplay in rels
35
-
* - or without autoplay=1 in src, but autoplay in rels
36
-
* We need to add a non-autoplaying variant with autoplay=0
0 commit comments