videojs-mobile-ui 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -41,8 +41,8 @@ Adjust seek times and tap sensitivity to match your specific content needs.
41
41
 
42
42
  Newer functionality is opt-in, to not force new features on existing players. Things you might want to add:
43
43
 
44
- - `fullscreen.swipeToFullScreen`, to enter fullscreen by swiping up on the video.
45
- - `fullscreen.swipeFromFullScreen`, to exit fullscreen by swiping down on the video (except iPhone).
44
+ - `fullscreen.swipeToFullscreen`, to enter fullscreen by swiping up on the video.
45
+ - `fullscreen.swipeFromFullscreen`, to exit fullscreen by swiping down on the video (except iPhone).
46
46
  - `touchControls.disableOnEnd`, to disable the touch controls at the end of the video. Useful if you have any sort of endcard displayed at the end of the video that might otherwise conflict.
47
47
 
48
48
  The [demo] page lets you try out the configuration options.
@@ -201,4 +201,4 @@ MIT. Copyright (c) mister-ben <git@misterben.me>
201
201
 
202
202
  [videojs]: http://videojs.org/
203
203
  [demo]: https://videojs-mobile-ui.netlify.app
204
- [demo-qr]: /demo-qr.svg
204
+ [demo-qr]: /demo-qr.svg
@@ -1,4 +1,4 @@
1
- /*! @name videojs-mobile-ui @version 1.2.0 @license MIT */
1
+ /*! @name videojs-mobile-ui @version 1.2.1 @license MIT */
2
2
  'use strict';
3
3
 
4
4
  var videojs = require('video.js');
@@ -9,7 +9,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
9
9
  var videojs__default = /*#__PURE__*/_interopDefaultLegacy(videojs);
10
10
  var window__default = /*#__PURE__*/_interopDefaultLegacy(window);
11
11
 
12
- var version = "1.2.0";
12
+ var version = "1.2.1";
13
13
 
14
14
  /**
15
15
  * @file touchOverlay.js
@@ -1,8 +1,8 @@
1
- /*! @name videojs-mobile-ui @version 1.2.0 @license MIT */
1
+ /*! @name videojs-mobile-ui @version 1.2.1 @license MIT */
2
2
  import videojs from 'video.js';
3
3
  import window from 'global/window';
4
4
 
5
- var version = "1.2.0";
5
+ var version = "1.2.1";
6
6
 
7
7
  /**
8
8
  * @file touchOverlay.js
@@ -1,4 +1,4 @@
1
- /*! @name videojs-mobile-ui @version 1.2.0 @license MIT */
1
+ /*! @name videojs-mobile-ui @version 1.2.1 @license MIT */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('video.js')) :
4
4
  typeof define === 'function' && define.amd ? define(['video.js'], factory) :
@@ -9,7 +9,7 @@
9
9
 
10
10
  var videojs__default = /*#__PURE__*/_interopDefaultLegacy(videojs);
11
11
 
12
- var version = "1.2.0";
12
+ var version = "1.2.1";
13
13
 
14
14
  /**
15
15
  * @file touchOverlay.js
@@ -1,2 +1,2 @@
1
- /*! @name videojs-mobile-ui @version 1.2.0 @license MIT */
2
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("video.js")):"function"==typeof define&&define.amd?define(["video.js"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).videojsMobileUi=t(e.videojs)}(this,function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=t(e);const n=s.default.getComponent("Component"),o=s.default.dom||s.default;n.registerComponent("TouchOverlay",class extends n{constructor(e,t){super(e,t),this.seekSeconds=t.seekSeconds,this.tapTimeout=t.tapTimeout,this.taps=0,this.addChild("playToggle",{}),e.on(["playing","userinactive"],e=>{this.removeClass("show-play-toggle")}),0===this.player_.options_.inactivityTimeout&&(this.player_.options_.inactivityTimeout=5e3),this.handleTaps_=s.default.fn.debounce(e=>{const t=(this.taps-1)*this.seekSeconds;if(this.taps=0,t<1)return;const s=this.el_.getBoundingClientRect(),n=e.changedTouches[0].clientX-s.left;if(n<.4*s.width)this.player_.currentTime(Math.max(0,this.player_.currentTime()-t)),this.addClass("reverse");else{if(!(n>s.width-.4*s.width))return;this.player_.currentTime(Math.min(this.player_.duration(),this.player_.currentTime()+t)),this.removeClass("reverse")}this.removeClass("show-play-toggle"),this.setAttribute("data-skip-text",`${t} ${this.localize("seconds")}`),this.removeClass("skip"),window.requestAnimationFrame(()=>{this.addClass("skip")})},this.tapTimeout),this.enable()}createEl(){return o.createEl("div",{className:"vjs-touch-overlay",tabIndex:-1})}handleTap(e){e.target===this.el_&&(e.cancelable&&e.preventDefault(),this.taps+=1,1===this.taps&&(this.removeClass("skip"),this.toggleClass("show-play-toggle")),this.handleTaps_(e))}enable(){this.firstTapCaptured=!1,this.on("touchend",this.handleTap)}disable(){this.off("touchend",this.handleTap)}});const i={fullscreen:{enterOnRotate:!0,exitOnRotate:!0,lockOnRotate:!0,lockToLandscapeOnEnter:!1,swipeToFullscreen:!1,swipeFromFullscreen:!1,disabled:!1},touchControls:{seekSeconds:10,tapTimeout:300,disableOnEnd:!1,disabled:!1}},l=window.screen,r=()=>{if(l){const e=((l.orientation||{}).type||l.mozOrientation||l.msOrientation||"").split("-")[0];if("landscape"===e||"portrait"===e)return e}return"number"==typeof window.orientation?0===window.orientation||180===window.orientation?"portrait":"landscape":"portrait"},a=(e,t)=>{if(e.addClass("vjs-mobile-ui"),!t.touchControls.disabled){(t.touchControls.disableOnEnd||"function"==typeof e.endscreen)&&e.addClass("vjs-mobile-ui-disable-end");const s=e.children_.indexOf(e.getChild("ControlBar"));e.touchOverlay=e.addChild("TouchOverlay",t.touchControls,s)}if(t.fullscreen.disabled)return;(t.fullscreen.swipeToFullscreen||t.fullscreen.swipeFromFullscreen)&&((e,t)=>{const{swipeToFullscreen:s,swipeFromFullscreen:n}=t.fullscreen;s&&e.addClass("using-fs-swipe-up"),n&&e.addClass("using-fs-swipe-down");let o=0,i=!1;const l=t=>{const l=e.isFullscreen();!l&&!s||l&&!n?i=!1:(o=t.changedTouches[0].clientY,i=!0,e.tech_.el().style.transition="")},r=t=>{if(!i)return;const s=t.touches[0].clientY,n=o-s,l=e.isFullscreen();let r=1;!l&&n>0?(r=1+Math.min(.1,n/500),e.tech_.el().style.transform=`scale(${r})`):l&&n<0&&(r=1-Math.min(.1,Math.abs(n)/500),e.tech_.el().style.transform=`scale(${r})`)},a=t=>{if(!i)return;if(i=!1,e.tech_.el().style.transition="transform 0.3s ease-out",e.tech_.el().style.transform="scale(1)","touchcancel"===t.type)return;const s=t.changedTouches[0].clientY,n=o-s;n>30&&!e.isFullscreen()?e.requestFullscreen().catch(t=>{e.log.warn("Browser refused fullscreen",t)}):n<-30&&e.isFullscreen()&&e.exitFullscreen()};e.el().addEventListener("touchstart",l,{passive:!0}),e.el().addEventListener("touchmove",r,{passive:!0}),e.el().addEventListener("touchend",a,{passive:!0}),e.el().addEventListener("touchcancel",a,{passive:!0}),e.on("dispose",()=>{e.el().removeEventListener("touchstart",l,{passive:!0}),e.el().removeEventListener("touchmove",r,{passive:!0}),e.el().removeEventListener("touchend",a,{passive:!0}),e.el().removeEventListener("touchcancel",a,{passive:!0}),e.tech_.el().style.transform="",e.tech_.el().style.transition=""})})(e,t);let n=!1;const o=()=>{const o=r();"landscape"===o&&t.fullscreen.enterOnRotate?e.paused()||e.isFullscreen()||(e.requestFullscreen().catch(t=>{e.log.warn("Browser refused fullscreen request:",t)}),(t.fullscreen.lockOnRotate||t.fullscreen.lockToLandscapeOnEnter)&&l.orientation&&l.orientation.lock&&l.orientation.lock("landscape").then(()=>{n=!0}).catch(e=>{s.default.log.warn("Browser refused orientation lock:",e)})):"portrait"===o&&t.fullscreen.exitOnRotate&&!n&&e.isFullscreen()&&e.exitFullscreen()};(t.fullscreen.enterOnRotate||t.fullscreen.exitOnRotate)&&(s.default.browser.IS_IOS?(window.addEventListener("orientationchange",o),e.on("dispose",()=>{window.removeEventListener("orientationchange",o)})):l.orientation&&(l.orientation.onchange=o,e.on("dispose",()=>{l.orientation.onchange=null}))),e.on("fullscreenchange",o=>{e.log("fullscreenchange",e.isFullscreen(),t.fullscreen.lockToLandscapeOnEnter,r()),e.isFullscreen()&&t.fullscreen.lockToLandscapeOnEnter&&"portrait"===r()?l.orientation.lock("landscape").then(()=>{n=!0}).catch(e=>{s.default.log("Browser refused orientation lock:",e)}):!e.isFullscreen()&&n&&(l.orientation.unlock(),n=!1)}),e.on("ended",e=>{!0===n&&(l.orientation.unlock(),n=!1)})},c=function(e={}){(e.forceForTesting||s.default.browser.IS_ANDROID||s.default.browser.IS_IOS)&&this.ready(()=>{a(this,s.default.obj.merge(i,e))})};return s.default.registerPlugin("mobileUi",c),c.VERSION="1.2.0",c});
1
+ /*! @name videojs-mobile-ui @version 1.2.1 @license MIT */
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("video.js")):"function"==typeof define&&define.amd?define(["video.js"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).videojsMobileUi=t(e.videojs)}(this,function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=t(e);const n=s.default.getComponent("Component"),o=s.default.dom||s.default;n.registerComponent("TouchOverlay",class extends n{constructor(e,t){super(e,t),this.seekSeconds=t.seekSeconds,this.tapTimeout=t.tapTimeout,this.taps=0,this.addChild("playToggle",{}),e.on(["playing","userinactive"],e=>{this.removeClass("show-play-toggle")}),0===this.player_.options_.inactivityTimeout&&(this.player_.options_.inactivityTimeout=5e3),this.handleTaps_=s.default.fn.debounce(e=>{const t=(this.taps-1)*this.seekSeconds;if(this.taps=0,t<1)return;const s=this.el_.getBoundingClientRect(),n=e.changedTouches[0].clientX-s.left;if(n<.4*s.width)this.player_.currentTime(Math.max(0,this.player_.currentTime()-t)),this.addClass("reverse");else{if(!(n>s.width-.4*s.width))return;this.player_.currentTime(Math.min(this.player_.duration(),this.player_.currentTime()+t)),this.removeClass("reverse")}this.removeClass("show-play-toggle"),this.setAttribute("data-skip-text",`${t} ${this.localize("seconds")}`),this.removeClass("skip"),window.requestAnimationFrame(()=>{this.addClass("skip")})},this.tapTimeout),this.enable()}createEl(){return o.createEl("div",{className:"vjs-touch-overlay",tabIndex:-1})}handleTap(e){e.target===this.el_&&(e.cancelable&&e.preventDefault(),this.taps+=1,1===this.taps&&(this.removeClass("skip"),this.toggleClass("show-play-toggle")),this.handleTaps_(e))}enable(){this.firstTapCaptured=!1,this.on("touchend",this.handleTap)}disable(){this.off("touchend",this.handleTap)}});const i={fullscreen:{enterOnRotate:!0,exitOnRotate:!0,lockOnRotate:!0,lockToLandscapeOnEnter:!1,swipeToFullscreen:!1,swipeFromFullscreen:!1,disabled:!1},touchControls:{seekSeconds:10,tapTimeout:300,disableOnEnd:!1,disabled:!1}},l=window.screen,r=()=>{if(l){const e=((l.orientation||{}).type||l.mozOrientation||l.msOrientation||"").split("-")[0];if("landscape"===e||"portrait"===e)return e}return"number"==typeof window.orientation?0===window.orientation||180===window.orientation?"portrait":"landscape":"portrait"},a=(e,t)=>{if(e.addClass("vjs-mobile-ui"),!t.touchControls.disabled){(t.touchControls.disableOnEnd||"function"==typeof e.endscreen)&&e.addClass("vjs-mobile-ui-disable-end");const s=e.children_.indexOf(e.getChild("ControlBar"));e.touchOverlay=e.addChild("TouchOverlay",t.touchControls,s)}if(t.fullscreen.disabled)return;(t.fullscreen.swipeToFullscreen||t.fullscreen.swipeFromFullscreen)&&((e,t)=>{const{swipeToFullscreen:s,swipeFromFullscreen:n}=t.fullscreen;s&&e.addClass("using-fs-swipe-up"),n&&e.addClass("using-fs-swipe-down");let o=0,i=!1;const l=t=>{const l=e.isFullscreen();!l&&!s||l&&!n?i=!1:(o=t.changedTouches[0].clientY,i=!0,e.tech_.el().style.transition="")},r=t=>{if(!i)return;const s=t.touches[0].clientY,n=o-s,l=e.isFullscreen();let r=1;!l&&n>0?(r=1+Math.min(.1,n/500),e.tech_.el().style.transform=`scale(${r})`):l&&n<0&&(r=1-Math.min(.1,Math.abs(n)/500),e.tech_.el().style.transform=`scale(${r})`)},a=t=>{if(!i)return;if(i=!1,e.tech_.el().style.transition="transform 0.3s ease-out",e.tech_.el().style.transform="scale(1)","touchcancel"===t.type)return;const s=t.changedTouches[0].clientY,n=o-s;n>30&&!e.isFullscreen()?e.requestFullscreen().catch(t=>{e.log.warn("Browser refused fullscreen",t)}):n<-30&&e.isFullscreen()&&e.exitFullscreen()};e.el().addEventListener("touchstart",l,{passive:!0}),e.el().addEventListener("touchmove",r,{passive:!0}),e.el().addEventListener("touchend",a,{passive:!0}),e.el().addEventListener("touchcancel",a,{passive:!0}),e.on("dispose",()=>{e.el().removeEventListener("touchstart",l,{passive:!0}),e.el().removeEventListener("touchmove",r,{passive:!0}),e.el().removeEventListener("touchend",a,{passive:!0}),e.el().removeEventListener("touchcancel",a,{passive:!0}),e.tech_.el().style.transform="",e.tech_.el().style.transition=""})})(e,t);let n=!1;const o=()=>{const o=r();"landscape"===o&&t.fullscreen.enterOnRotate?e.paused()||e.isFullscreen()||(e.requestFullscreen().catch(t=>{e.log.warn("Browser refused fullscreen request:",t)}),(t.fullscreen.lockOnRotate||t.fullscreen.lockToLandscapeOnEnter)&&l.orientation&&l.orientation.lock&&l.orientation.lock("landscape").then(()=>{n=!0}).catch(e=>{s.default.log.warn("Browser refused orientation lock:",e)})):"portrait"===o&&t.fullscreen.exitOnRotate&&!n&&e.isFullscreen()&&e.exitFullscreen()};(t.fullscreen.enterOnRotate||t.fullscreen.exitOnRotate)&&(s.default.browser.IS_IOS?(window.addEventListener("orientationchange",o),e.on("dispose",()=>{window.removeEventListener("orientationchange",o)})):l.orientation&&(l.orientation.onchange=o,e.on("dispose",()=>{l.orientation.onchange=null}))),e.on("fullscreenchange",o=>{e.log("fullscreenchange",e.isFullscreen(),t.fullscreen.lockToLandscapeOnEnter,r()),e.isFullscreen()&&t.fullscreen.lockToLandscapeOnEnter&&"portrait"===r()?l.orientation.lock("landscape").then(()=>{n=!0}).catch(e=>{s.default.log("Browser refused orientation lock:",e)}):!e.isFullscreen()&&n&&(l.orientation.unlock(),n=!1)}),e.on("ended",e=>{!0===n&&(l.orientation.unlock(),n=!1)})},c=function(e={}){(e.forceForTesting||s.default.browser.IS_ANDROID||s.default.browser.IS_IOS)&&this.ready(()=>{a(this,s.default.obj.merge(i,e))})};return s.default.registerPlugin("mobileUi",c),c.VERSION="1.2.1",c});
@@ -30,7 +30,7 @@
30
30
 
31
31
  <h2><span class="attribs"><span class="type-signature"></span></span>TouchOverlay<span class="signature">(player, options<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h2>
32
32
 
33
- <div class="class-description">The `TouchOverlay` is an overlay to capture tap events.</div>
33
+ <div class="class-description"><p>The <code>TouchOverlay</code> is an overlay to capture tap events.</p></div>
34
34
 
35
35
 
36
36
  </header>
@@ -53,7 +53,7 @@
53
53
 
54
54
 
55
55
  <div class="description">
56
- Creates an instance of the this class.
56
+ <p>Creates an instance of the this class.</p>
57
57
  </div>
58
58
 
59
59
 
@@ -115,7 +115,7 @@
115
115
 
116
116
 
117
117
 
118
- <td class="description last">The `Player` that this class should be attached to.</td>
118
+ <td class="description last"><p>The <code>Player</code> that this class should be attached to.</p></td>
119
119
  </tr>
120
120
 
121
121
 
@@ -128,7 +128,7 @@
128
128
  <td class="type">
129
129
 
130
130
 
131
- <span class="param-type">options</span>
131
+ <span class="param-type">Object</span>
132
132
 
133
133
 
134
134
 
@@ -148,7 +148,7 @@
148
148
 
149
149
 
150
150
 
151
- <td class="description last">The key/value store of player options.</td>
151
+ <td class="description last"><p>The key/value store of player options.</p></td>
152
152
  </tr>
153
153
 
154
154
 
@@ -189,7 +189,7 @@
189
189
 
190
190
  <dt class="tag-source">Source:</dt>
191
191
  <dd class="tag-source"><ul class="dummy"><li>
192
- <a href="touchOverlay.js.html">touchOverlay.js</a>, <a href="touchOverlay.js.html#line19">line 19</a>
192
+ <a href="touchOverlay.js.html">touchOverlay.js</a>, <a href="touchOverlay.js.html#line17">line 17</a>
193
193
  </li></ul></dd>
194
194
 
195
195
 
@@ -217,8 +217,6 @@
217
217
 
218
218
 
219
219
 
220
-
221
-
222
220
 
223
221
  </div>
224
222
 
@@ -229,7 +227,7 @@
229
227
 
230
228
 
231
229
  <ul>
232
- <li><a href="global.html#Component">Component</a></li>
230
+ <li>Component</li>
233
231
  </ul>
234
232
 
235
233
 
@@ -246,19 +244,25 @@
246
244
 
247
245
 
248
246
 
249
- <h3 class="subsection-title">Members</h3>
247
+
248
+
249
+ <h3 class="subsection-title">Methods</h3>
250
250
 
251
251
 
252
252
 
253
- <h4 class="name" id="handleTaps_"><span class="type-signature"></span>handleTaps_<span class="type-signature"></span></h4>
254
253
 
254
+
255
+
256
+
257
+ <h4 class="name" id="createEl"><span class="type-signature"></span>createEl<span class="signature">()</span><span class="type-signature"> &rarr; {Element}</span></h4>
258
+
259
+
260
+
255
261
 
256
262
 
257
263
 
258
264
  <div class="description">
259
- Debounced tap handler.
260
- Seeks number of (taps - 1) * configured seconds to skip.
261
- One tap is a non-op
265
+ <p>Builds the DOM element.</p>
262
266
  </div>
263
267
 
264
268
 
@@ -267,6 +271,12 @@ One tap is a non-op
267
271
 
268
272
 
269
273
 
274
+
275
+
276
+
277
+
278
+
279
+
270
280
  <dl class="details">
271
281
 
272
282
 
@@ -296,7 +306,7 @@ One tap is a non-op
296
306
 
297
307
  <dt class="tag-source">Source:</dt>
298
308
  <dd class="tag-source"><ul class="dummy"><li>
299
- <a href="touchOverlay.js.html">touchOverlay.js</a>, <a href="touchOverlay.js.html#line57">line 57</a>
309
+ <a href="touchOverlay.js.html">touchOverlay.js</a>, <a href="touchOverlay.js.html#line56">line 56</a>
300
310
  </li></ul></dd>
301
311
 
302
312
 
@@ -312,11 +322,39 @@ One tap is a non-op
312
322
 
313
323
 
314
324
 
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+ <h5>Returns:</h5>
333
+
315
334
 
316
-
335
+ <div class="param-desc">
336
+ <p>The DOM element.</p>
337
+ </div>
338
+
339
+
340
+
341
+ <dl>
342
+ <dt>
343
+ Type
344
+ </dt>
345
+ <dd>
346
+
347
+ <span class="param-type">Element</span>
348
+
349
+
350
+ </dd>
351
+ </dl>
317
352
 
318
353
 
319
- <h3 class="subsection-title">Methods</h3>
354
+
355
+
356
+
357
+
320
358
 
321
359
 
322
360
 
@@ -324,7 +362,7 @@ One tap is a non-op
324
362
 
325
363
 
326
364
 
327
- <h4 class="name" id="createEl"><span class="type-signature"></span>createEl<span class="signature">()</span><span class="type-signature"> &rarr; {Element}</span></h4>
365
+ <h4 class="name" id="disable"><span class="type-signature"></span>disable<span class="signature">()</span><span class="type-signature"></span></h4>
328
366
 
329
367
 
330
368
 
@@ -332,7 +370,7 @@ One tap is a non-op
332
370
 
333
371
 
334
372
  <div class="description">
335
- Builds the DOM element.
373
+ <p>Disables touch handler</p>
336
374
  </div>
337
375
 
338
376
 
@@ -376,7 +414,7 @@ One tap is a non-op
376
414
 
377
415
  <dt class="tag-source">Source:</dt>
378
416
  <dd class="tag-source"><ul class="dummy"><li>
379
- <a href="touchOverlay.js.html">touchOverlay.js</a>, <a href="touchOverlay.js.html#line99">line 99</a>
417
+ <a href="touchOverlay.js.html">touchOverlay.js</a>, <a href="touchOverlay.js.html#line153">line 153</a>
380
418
  </li></ul></dd>
381
419
 
382
420
 
@@ -401,28 +439,90 @@ One tap is a non-op
401
439
 
402
440
 
403
441
 
404
- <h5>Returns:</h5>
442
+
443
+
405
444
 
406
445
 
407
- <div class="param-desc">
408
- The DOM element.
446
+
447
+
448
+
449
+
450
+
451
+ <h4 class="name" id="enable"><span class="type-signature"></span>enable<span class="signature">()</span><span class="type-signature"></span></h4>
452
+
453
+
454
+
455
+
456
+
457
+
458
+ <div class="description">
459
+ <p>Enables touch handler</p>
409
460
  </div>
410
461
 
411
462
 
412
463
 
413
- <dl>
414
- <dt>
415
- Type
416
- </dt>
417
- <dd>
418
-
419
- <span class="param-type">Element</span>
420
464
 
421
465
 
422
- </dd>
423
- </dl>
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+ <dl class="details">
475
+
476
+
477
+
478
+
479
+
480
+
481
+
482
+
483
+
484
+
485
+
486
+
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+
498
+
499
+
500
+
501
+ <dt class="tag-source">Source:</dt>
502
+ <dd class="tag-source"><ul class="dummy"><li>
503
+ <a href="touchOverlay.js.html">touchOverlay.js</a>, <a href="touchOverlay.js.html#line145">line 145</a>
504
+ </li></ul></dd>
505
+
506
+
507
+
508
+
509
+
424
510
 
425
511
 
512
+ </dl>
513
+
514
+
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+
426
526
 
427
527
 
428
528
 
@@ -434,7 +534,7 @@ One tap is a non-op
434
534
 
435
535
 
436
536
 
437
- <h4 class="name" id="disable"><span class="type-signature"></span>disable<span class="signature">()</span><span class="type-signature"></span></h4>
537
+ <h4 class="name" id="handleDoubleTap"><span class="type-signature"></span>handleDoubleTap<span class="signature">(event)</span><span class="type-signature"></span></h4>
438
538
 
439
539
 
440
540
 
@@ -442,7 +542,7 @@ One tap is a non-op
442
542
 
443
543
 
444
544
  <div class="description">
445
- Disables touch handler
545
+ <p>Seeks by configured number of seconds if left or right part of video double tapped</p>
446
546
  </div>
447
547
 
448
548
 
@@ -453,6 +553,55 @@ One tap is a non-op
453
553
 
454
554
 
455
555
 
556
+ <h5>Parameters:</h5>
557
+
558
+
559
+ <table class="params">
560
+ <thead>
561
+ <tr>
562
+
563
+ <th>Name</th>
564
+
565
+
566
+ <th>Type</th>
567
+
568
+
569
+
570
+
571
+
572
+ <th class="last">Description</th>
573
+ </tr>
574
+ </thead>
575
+
576
+ <tbody>
577
+
578
+
579
+ <tr>
580
+
581
+ <td class="name"><code>event</code></td>
582
+
583
+
584
+ <td class="type">
585
+
586
+
587
+ <span class="param-type">Event</span>
588
+
589
+
590
+
591
+ </td>
592
+
593
+
594
+
595
+
596
+
597
+ <td class="description last"><p>The touch event</p></td>
598
+ </tr>
599
+
600
+
601
+ </tbody>
602
+ </table>
603
+
604
+
456
605
 
457
606
 
458
607
 
@@ -486,7 +635,7 @@ One tap is a non-op
486
635
 
487
636
  <dt class="tag-source">Source:</dt>
488
637
  <dd class="tag-source"><ul class="dummy"><li>
489
- <a href="touchOverlay.js.html">touchOverlay.js</a>, <a href="touchOverlay.js.html#line145">line 145</a>
638
+ <a href="touchOverlay.js.html">touchOverlay.js</a>, <a href="touchOverlay.js.html#line115">line 115</a>
490
639
  </li></ul></dd>
491
640
 
492
641
 
@@ -514,15 +663,13 @@ One tap is a non-op
514
663
 
515
664
 
516
665
 
517
-
518
-
519
666
 
520
667
 
521
668
 
522
669
 
523
670
 
524
671
 
525
- <h4 class="name" id="enable"><span class="type-signature"></span>enable<span class="signature">()</span><span class="type-signature"></span></h4>
672
+ <h4 class="name" id="handleSingleTap"><span class="type-signature"></span>handleSingleTap<span class="signature">(event)</span><span class="type-signature"></span></h4>
526
673
 
527
674
 
528
675
 
@@ -530,7 +677,7 @@ One tap is a non-op
530
677
 
531
678
 
532
679
  <div class="description">
533
- Enables touch handler
680
+ <p>Toggles display of play toggle</p>
534
681
  </div>
535
682
 
536
683
 
@@ -541,6 +688,55 @@ One tap is a non-op
541
688
 
542
689
 
543
690
 
691
+ <h5>Parameters:</h5>
692
+
693
+
694
+ <table class="params">
695
+ <thead>
696
+ <tr>
697
+
698
+ <th>Name</th>
699
+
700
+
701
+ <th>Type</th>
702
+
703
+
704
+
705
+
706
+
707
+ <th class="last">Description</th>
708
+ </tr>
709
+ </thead>
710
+
711
+ <tbody>
712
+
713
+
714
+ <tr>
715
+
716
+ <td class="name"><code>event</code></td>
717
+
718
+
719
+ <td class="type">
720
+
721
+
722
+ <span class="param-type">Event</span>
723
+
724
+
725
+
726
+ </td>
727
+
728
+
729
+
730
+
731
+
732
+ <td class="description last"><p>The touch event</p></td>
733
+ </tr>
734
+
735
+
736
+ </tbody>
737
+ </table>
738
+
739
+
544
740
 
545
741
 
546
742
 
@@ -574,7 +770,7 @@ One tap is a non-op
574
770
 
575
771
  <dt class="tag-source">Source:</dt>
576
772
  <dd class="tag-source"><ul class="dummy"><li>
577
- <a href="touchOverlay.js.html">touchOverlay.js</a>, <a href="touchOverlay.js.html#line137">line 137</a>
773
+ <a href="touchOverlay.js.html">touchOverlay.js</a>, <a href="touchOverlay.js.html#line103">line 103</a>
578
774
  </li></ul></dd>
579
775
 
580
776
 
@@ -602,8 +798,6 @@ One tap is a non-op
602
798
 
603
799
 
604
800
 
605
-
606
-
607
801
 
608
802
 
609
803
 
@@ -618,7 +812,7 @@ One tap is a non-op
618
812
 
619
813
 
620
814
  <div class="description">
621
- Debounces to either handle a delayed single tap, or a double tap
815
+ <p>Debounces to either handle a delayed single tap, or a double tap</p>
622
816
  </div>
623
817
 
624
818
 
@@ -670,7 +864,7 @@ One tap is a non-op
670
864
 
671
865
 
672
866
 
673
- <td class="description last">The touch event</td>
867
+ <td class="description last"><p>The touch event</p></td>
674
868
  </tr>
675
869
 
676
870
 
@@ -711,7 +905,7 @@ One tap is a non-op
711
905
 
712
906
  <dt class="tag-source">Source:</dt>
713
907
  <dd class="tag-source"><ul class="dummy"><li>
714
- <a href="touchOverlay.js.html">touchOverlay.js</a>, <a href="touchOverlay.js.html#line116">line 116</a>
908
+ <a href="touchOverlay.js.html">touchOverlay.js</a>, <a href="touchOverlay.js.html#line73">line 73</a>
715
909
  </li></ul></dd>
716
910
 
717
911
 
@@ -739,8 +933,6 @@ One tap is a non-op
739
933
 
740
934
 
741
935
 
742
-
743
-
744
936
 
745
937
 
746
938
 
@@ -757,13 +949,13 @@ One tap is a non-op
757
949
  </div>
758
950
 
759
951
  <nav>
760
- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="TouchOverlay.html">TouchOverlay</a></li></ul><h3>Global</h3><ul><li><a href="global.html#Component">Component</a></li><li><a href="global.html#defaults">defaults</a></li><li><a href="global.html#getOrientation">getOrientation</a></li><li><a href="global.html#initSwipe">initSwipe</a></li><li><a href="global.html#mobileUi">mobileUi</a></li><li><a href="global.html#onPlayerReady">onPlayerReady</a></li></ul>
952
+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="TouchOverlay.html">TouchOverlay</a></li></ul><h3>Global</h3><ul><li><a href="global.html#mobileUi">mobileUi</a></li><li><a href="global.html#onPlayerReady">onPlayerReady</a></li></ul>
761
953
  </nav>
762
954
 
763
955
  <br class="clear">
764
956
 
765
957
  <footer>
766
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Jan 23 2026 14:03:20 GMT+0100 (Mitteleuropäische Normalzeit)
958
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Feb 02 2021 09:43:56 GMT+0100 (CET)
767
959
  </footer>
768
960
 
769
961
  <script> prettyPrint(); </script>