Quellcode durchsuchen

Add comment

customisations
alemart vor 1 Jahr
Ursprung
Commit
2854f7a0de
1 geänderte Dateien mit 6 neuen und 2 gelöschten Zeilen
  1. 6
    2
      src/sources/video-source.ts

+ 6
- 2
src/sources/video-source.ts Datei anzeigen

@@ -138,7 +138,7 @@ export class VideoSource implements Source
138 138
         // handle autoplay
139 139
         return this._handleAutoPlay(video).then(video => {
140 140
 
141
-            // Handle WebKit quirks
141
+            // handle WebKit quirks
142 142
             // note: navigator.vendor is deprecated. Alternatively, test GL_RENDERER == "Apple GPU"
143 143
             if(Utils.isIOS() || /Apple/.test(navigator.vendor)) {
144 144
 
@@ -210,12 +210,16 @@ export class VideoSource implements Source
210 210
                             // this is added for convenience
211 211
                             document.body.addEventListener('pointerdown', () => video.play());
212 212
 
213
-                            // display the interactive message only once
213
+                            // ask only once for user interaction
214 214
                             if(!displayedAlertMessage) {
215 215
                                 alert(ALERT_MESSAGE);
216 216
                                 displayedAlertMessage = true;
217 217
                             }
218 218
 
219
+                            // XXX what if the Session mode is inline? In this
220
+                            // case, this convenience code may be undesirable.
221
+                            // A workaround is to disable autoplay.
222
+
219 223
                         }
220 224
                         /*else {
221 225
                             // play the video after the first interaction with the page

Laden…
Abbrechen
Speichern