videojs-mobile-ui 1.0.1 → 1.1.0
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 +6 -3
- package/dist/videojs-mobile-ui.cjs.js +4 -6
- package/dist/videojs-mobile-ui.css +2 -2
- package/dist/videojs-mobile-ui.es.js +4 -6
- package/dist/videojs-mobile-ui.js +4 -6
- package/dist/videojs-mobile-ui.min.js +2 -2
- package/package.json +1 -1
- package/src/plugin.css +1 -1
- package/src/plugin.js +2 -4
package/README.md
CHANGED
|
@@ -38,7 +38,11 @@ npm install video.js
|
|
|
38
38
|
npm install videojs-mobile-ui
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
Version 1.x requires video.js 8.x as a peer dependency. Lowever video.js versions are not supported. 0.7.0 supports video.js 7.x.
|
|
41
|
+
Version 1.x requires video.js 8.x as a peer dependency. Lowever video.js versions are not supported. 0.7.0 supports video.js 7.x. To install the latest version that works with Video.js 7, use the `latest7` tag:
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
npm install videojs-mobile-ui@latest7
|
|
45
|
+
```
|
|
42
46
|
|
|
43
47
|
## Plugin Options
|
|
44
48
|
|
|
@@ -51,7 +55,6 @@ Version 1.x requires video.js 8.x as a peer dependency. Lowever video.js version
|
|
|
51
55
|
exitOnRotate: true,
|
|
52
56
|
lockOnRotate: true,
|
|
53
57
|
lockToLandscapeOnEnter: false,
|
|
54
|
-
iOS: false,
|
|
55
58
|
disabled: false
|
|
56
59
|
},
|
|
57
60
|
touchControls: {
|
|
@@ -73,7 +76,7 @@ Version 1.x requires video.js 8.x as a peer dependency. Lowever video.js version
|
|
|
73
76
|
- *touchControls.seekSeconds* `int` Seconds to seek when double-tapping
|
|
74
77
|
- *touchControls.tapTimeout* `int` Milliseconds to consider a double-tap
|
|
75
78
|
- *touchControls.disableOnEnd* `boolean` Whether to disable touch controls when the video has ended, e.g. if an endscreen is used. Automatically disables if the endscreen plugin is present when this plugin initialises
|
|
76
|
-
- *touchControls.
|
|
79
|
+
- *touchControls.disabled* `boolean` If true no touch controls are added.
|
|
77
80
|
|
|
78
81
|
## Usage
|
|
79
82
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @name videojs-mobile-ui @version 1.0
|
|
1
|
+
/*! @name videojs-mobile-ui @version 1.1.0 @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.0
|
|
12
|
+
var version = "1.1.0";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @file touchOverlay.js
|
|
@@ -169,9 +169,9 @@ const screen = window__default["default"].screen;
|
|
|
169
169
|
* @return {string} orientation
|
|
170
170
|
*/
|
|
171
171
|
const getOrientation = () => {
|
|
172
|
-
if (
|
|
172
|
+
if (screen) {
|
|
173
173
|
// Prefer the string over angle, as 0° can be landscape on some tablets
|
|
174
|
-
const orientationString = ((
|
|
174
|
+
const orientationString = ((screen.orientation || {}).type || screen.mozOrientation || screen.msOrientation || '').split('-')[0];
|
|
175
175
|
if (orientationString === 'landscape' || orientationString === 'portrait') {
|
|
176
176
|
return orientationString;
|
|
177
177
|
}
|
|
@@ -289,8 +289,6 @@ const onPlayerReady = (player, options) => {
|
|
|
289
289
|
* @param {boolean} [options.fullscreen.lockToLandscapeOnEnter=false]
|
|
290
290
|
* Whether to always lock orientation to landscape on fullscreen mode
|
|
291
291
|
* Unlocked when exiting fullscreen or on 'ended'
|
|
292
|
-
* @param {boolean} [options.fullscreen.iOS=false]
|
|
293
|
-
* Deprecated: Whether to disable iOS's native fullscreen so controls can work
|
|
294
292
|
* @param {Object} [options.touchControls={}]
|
|
295
293
|
* Touch UI options.
|
|
296
294
|
* @param {boolean} [options.touchControls.disabled=false]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @name videojs-mobile-ui @version 1.0
|
|
2
|
-
@keyframes fadeAndScale{0%,to{opacity:0}25%{opacity:1}}.video-js.vjs-has-started .vjs-touch-overlay{position:absolute;pointer-events:auto;top:0}.video-js .vjs-touch-overlay{display:block;width:100%;height:100%;pointer-events:none}.video-js .vjs-touch-overlay.skip{opacity:0;animation:fadeAndScale .8s linear;background-repeat:no-repeat;background-position:80% center;background-size:10%;background-image:url('data:image/svg+xml;utf8,<svg fill="%23FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M4 18l8.5-6L4 6v12zm9-12v12l8.5-6L13 6z"/><path d="M0 0h24v24H0z" fill="none"/></svg>')}.video-js .vjs-touch-overlay.skip:after{content:attr(data-skip-text);position:absolute;top:60%;left:70%}.video-js .vjs-touch-overlay.skip.reverse{background-position:20% center;background-image:url('data:image/svg+xml;utf8,<svg fill="%23FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M11 18V6l-8.5 6 8.5 6zm.5-6l8.5 6V6l-8.5 6z"/><path d="M0 0h24v24H0z" fill="none"/></svg>')}.video-js .vjs-touch-overlay.skip.reverse:after{right:70%;left:unset}.video-js .vjs-touch-overlay .vjs-play-control{top:50%;left:50%;transform:translate(-50%,-50%);position:absolute;width:30%;height:80%;pointer-events:none;opacity:0;transition:opacity .3s ease}.video-js .vjs-touch-overlay .vjs-play-control .vjs-icon-placeholder::before{content:'';background-size:60%;background-position:center center;background-repeat:no-repeat;background-image:url('data:image/svg+xml;utf8,<svg fill="%23FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/><path d="M0 0h24v24H0z" fill="none"/></svg>')}.video-js .vjs-touch-overlay .vjs-play-control.vjs-paused .vjs-icon-placeholder::before{content:'';background-image:url('data:image/svg+xml;utf8,<svg fill="%23FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M8 5v14l11-7z"/><path d="M0 0h24v24H0z" fill="none"/></svg>')}.video-js .vjs-touch-overlay .vjs-play-control.vjs-ended .vjs-icon-placeholder::before{content:'';background-image:url('data:image/svg+xml;utf8,<svg fill="%23FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"/></svg>')}.video-js .vjs-touch-overlay.show-play-toggle .vjs-play-control{opacity:1;pointer-events:auto}.video-js.vjs-mobile-ui-disable-end.vjs-ended .vjs-touch-overlay{display:none}
|
|
1
|
+
/*! @name videojs-mobile-ui @version 1.1.0 @license MIT */
|
|
2
|
+
@keyframes fadeAndScale{0%,to{opacity:0}25%{opacity:1}}.video-js.vjs-mobile-ui.vjs-has-started .vjs-touch-overlay{position:absolute;pointer-events:auto;top:0}.video-js.vjs-mobile-ui .vjs-touch-overlay{display:block;width:100%;height:100%;pointer-events:none}.video-js.vjs-mobile-ui .vjs-touch-overlay.skip{opacity:0;animation:fadeAndScale .8s linear;background-repeat:no-repeat;background-position:80% center;background-size:10%;background-image:url('data:image/svg+xml;utf8,<svg fill="%23FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M4 18l8.5-6L4 6v12zm9-12v12l8.5-6L13 6z"/><path d="M0 0h24v24H0z" fill="none"/></svg>')}.video-js.vjs-mobile-ui .vjs-touch-overlay.skip:after{content:attr(data-skip-text);position:absolute;top:60%;left:70%}.video-js.vjs-mobile-ui .vjs-touch-overlay.skip.reverse{background-position:20% center;background-image:url('data:image/svg+xml;utf8,<svg fill="%23FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M11 18V6l-8.5 6 8.5 6zm.5-6l8.5 6V6l-8.5 6z"/><path d="M0 0h24v24H0z" fill="none"/></svg>')}.video-js.vjs-mobile-ui .vjs-touch-overlay.skip.reverse:after{right:70%;left:unset}.video-js.vjs-mobile-ui .vjs-touch-overlay .vjs-play-control{top:50%;left:50%;transform:translate(-50%,-50%);position:absolute;width:30%;height:80%;pointer-events:none;opacity:0;transition:opacity .3s ease}.video-js.vjs-mobile-ui .vjs-touch-overlay .vjs-play-control .vjs-icon-placeholder::before{content:'';background-size:60%;background-position:center center;background-repeat:no-repeat;background-image:url('data:image/svg+xml;utf8,<svg fill="%23FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/><path d="M0 0h24v24H0z" fill="none"/></svg>')}.video-js.vjs-mobile-ui .vjs-touch-overlay .vjs-play-control.vjs-paused .vjs-icon-placeholder::before{content:'';background-image:url('data:image/svg+xml;utf8,<svg fill="%23FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M8 5v14l11-7z"/><path d="M0 0h24v24H0z" fill="none"/></svg>')}.video-js.vjs-mobile-ui .vjs-touch-overlay .vjs-play-control.vjs-ended .vjs-icon-placeholder::before{content:'';background-image:url('data:image/svg+xml;utf8,<svg fill="%23FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"/></svg>')}.video-js.vjs-mobile-ui .vjs-touch-overlay.show-play-toggle .vjs-play-control{opacity:1;pointer-events:auto}.video-js.vjs-mobile-ui.vjs-mobile-ui-disable-end.vjs-ended .vjs-touch-overlay{display:none}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @name videojs-mobile-ui @version 1.0
|
|
1
|
+
/*! @name videojs-mobile-ui @version 1.1.0 @license MIT */
|
|
2
2
|
import videojs from 'video.js';
|
|
3
3
|
import window from 'global/window';
|
|
4
4
|
|
|
5
|
-
var version = "1.0
|
|
5
|
+
var version = "1.1.0";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @file touchOverlay.js
|
|
@@ -162,9 +162,9 @@ const screen = window.screen;
|
|
|
162
162
|
* @return {string} orientation
|
|
163
163
|
*/
|
|
164
164
|
const getOrientation = () => {
|
|
165
|
-
if (
|
|
165
|
+
if (screen) {
|
|
166
166
|
// Prefer the string over angle, as 0° can be landscape on some tablets
|
|
167
|
-
const orientationString = ((
|
|
167
|
+
const orientationString = ((screen.orientation || {}).type || screen.mozOrientation || screen.msOrientation || '').split('-')[0];
|
|
168
168
|
if (orientationString === 'landscape' || orientationString === 'portrait') {
|
|
169
169
|
return orientationString;
|
|
170
170
|
}
|
|
@@ -282,8 +282,6 @@ const onPlayerReady = (player, options) => {
|
|
|
282
282
|
* @param {boolean} [options.fullscreen.lockToLandscapeOnEnter=false]
|
|
283
283
|
* Whether to always lock orientation to landscape on fullscreen mode
|
|
284
284
|
* Unlocked when exiting fullscreen or on 'ended'
|
|
285
|
-
* @param {boolean} [options.fullscreen.iOS=false]
|
|
286
|
-
* Deprecated: Whether to disable iOS's native fullscreen so controls can work
|
|
287
285
|
* @param {Object} [options.touchControls={}]
|
|
288
286
|
* Touch UI options.
|
|
289
287
|
* @param {boolean} [options.touchControls.disabled=false]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @name videojs-mobile-ui @version 1.0
|
|
1
|
+
/*! @name videojs-mobile-ui @version 1.1.0 @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.0
|
|
12
|
+
var version = "1.1.0";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @file touchOverlay.js
|
|
@@ -169,9 +169,9 @@
|
|
|
169
169
|
* @return {string} orientation
|
|
170
170
|
*/
|
|
171
171
|
const getOrientation = () => {
|
|
172
|
-
if (
|
|
172
|
+
if (screen) {
|
|
173
173
|
// Prefer the string over angle, as 0° can be landscape on some tablets
|
|
174
|
-
const orientationString = ((
|
|
174
|
+
const orientationString = ((screen.orientation || {}).type || screen.mozOrientation || screen.msOrientation || '').split('-')[0];
|
|
175
175
|
if (orientationString === 'landscape' || orientationString === 'portrait') {
|
|
176
176
|
return orientationString;
|
|
177
177
|
}
|
|
@@ -289,8 +289,6 @@
|
|
|
289
289
|
* @param {boolean} [options.fullscreen.lockToLandscapeOnEnter=false]
|
|
290
290
|
* Whether to always lock orientation to landscape on fullscreen mode
|
|
291
291
|
* Unlocked when exiting fullscreen or on 'ended'
|
|
292
|
-
* @param {boolean} [options.fullscreen.iOS=false]
|
|
293
|
-
* Deprecated: Whether to disable iOS's native fullscreen so controls can work
|
|
294
292
|
* @param {Object} [options.touchControls={}]
|
|
295
293
|
* Touch UI options.
|
|
296
294
|
* @param {boolean} [options.touchControls.disabled=false]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @name videojs-mobile-ui @version 1.0
|
|
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 n=t(e);const o=n.default.getComponent("Component"),i=n.default.dom||n.default;o.registerComponent("TouchOverlay",class extends o{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_=n.default.fn.debounce((e=>{const t=(this.taps-1)*this.seekSeconds;if(this.taps=0,t<1)return;const n=this.el_.getBoundingClientRect(),o=e.changedTouches[0].clientX-n.left;if(o<.4*n.width)this.player_.currentTime(Math.max(0,this.player_.currentTime()-t)),this.addClass("reverse");else{if(!(o>n.width-.4*n.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 i.createEl("div",{className:"vjs-touch-overlay",tabIndex:-1})}handleTap(e){e.target===this.el_&&(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 s={fullscreen:{enterOnRotate:!0,exitOnRotate:!0,lockOnRotate:!0,lockToLandscapeOnEnter:!1,disabled:!1},touchControls:{seekSeconds:10,tapTimeout:300,disableOnEnd:!1,disabled:!1}},a=window.screen,r=()=>{if(
|
|
1
|
+
/*! @name videojs-mobile-ui @version 1.1.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 n=t(e);const o=n.default.getComponent("Component"),i=n.default.dom||n.default;o.registerComponent("TouchOverlay",class extends o{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_=n.default.fn.debounce((e=>{const t=(this.taps-1)*this.seekSeconds;if(this.taps=0,t<1)return;const n=this.el_.getBoundingClientRect(),o=e.changedTouches[0].clientX-n.left;if(o<.4*n.width)this.player_.currentTime(Math.max(0,this.player_.currentTime()-t)),this.addClass("reverse");else{if(!(o>n.width-.4*n.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 i.createEl("div",{className:"vjs-touch-overlay",tabIndex:-1})}handleTap(e){e.target===this.el_&&(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 s={fullscreen:{enterOnRotate:!0,exitOnRotate:!0,lockOnRotate:!0,lockToLandscapeOnEnter:!1,disabled:!1},touchControls:{seekSeconds:10,tapTimeout:300,disableOnEnd:!1,disabled:!1}},a=window.screen,r=()=>{if(a){const e=((a.orientation||{}).type||a.mozOrientation||a.msOrientation||"").split("-")[0];if("landscape"===e||"portrait"===e)return e}return"number"==typeof window.orientation?0===window.orientation||180===window.orientation?"portrait":"landscape":"portrait"},l=function(e={}){(e.forceForTesting||n.default.browser.IS_ANDROID||n.default.browser.IS_IOS)&&this.ready((()=>{((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 n=e.children_.indexOf(e.getChild("ControlBar"));e.touchOverlay=e.addChild("TouchOverlay",t.touchControls,n)}if(t.fullscreen.disabled)return;let o=!1;const i=()=>{const i=r();"landscape"===i&&t.fullscreen.enterOnRotate?!1===e.paused()&&(e.requestFullscreen(),(t.fullscreen.lockOnRotate||t.fullscreen.lockToLandscapeOnEnter)&&a.orientation&&a.orientation.lock&&a.orientation.lock("landscape").then((()=>{o=!0})).catch((e=>{n.default.log("Browser refused orientation lock:",e)}))):"portrait"===i&&t.fullscreen.exitOnRotate&&!o&&e.isFullscreen()&&e.exitFullscreen()};(t.fullscreen.enterOnRotate||t.fullscreen.exitOnRotate)&&(n.default.browser.IS_IOS?(window.addEventListener("orientationchange",i),e.on("dispose",(()=>{window.removeEventListener("orientationchange",i)}))):a.orientation&&(a.orientation.onchange=i,e.on("dispose",(()=>{a.orientation.onchange=null})))),e.on("fullscreenchange",(i=>{e.isFullscreen()&&t.fullscreen.lockToLandscapeOnEnter&&"portrait"===r()?a.orientation.lock("landscape").then((()=>{o=!0})).catch((e=>{n.default.log("Browser refused orientation lock:",e)})):!e.isFullscreen()&&o&&(a.orientation.unlock(),o=!1)})),e.on("ended",(e=>{!0===o&&(a.orientation.unlock(),o=!1)}))})(this,n.default.obj.merge(s,e))}))};return n.default.registerPlugin("mobileUi",l),l.VERSION="1.1.0",l}));
|
package/package.json
CHANGED
package/src/plugin.css
CHANGED
package/src/plugin.js
CHANGED
|
@@ -28,9 +28,9 @@ const screen = window.screen;
|
|
|
28
28
|
* @return {string} orientation
|
|
29
29
|
*/
|
|
30
30
|
const getOrientation = () => {
|
|
31
|
-
if (
|
|
31
|
+
if (screen) {
|
|
32
32
|
// Prefer the string over angle, as 0° can be landscape on some tablets
|
|
33
|
-
const orientationString = ((
|
|
33
|
+
const orientationString = ((screen.orientation || {}).type || screen.mozOrientation || screen.msOrientation || '').split('-')[0];
|
|
34
34
|
|
|
35
35
|
if (orientationString === 'landscape' || orientationString === 'portrait') {
|
|
36
36
|
return orientationString;
|
|
@@ -163,8 +163,6 @@ const onPlayerReady = (player, options) => {
|
|
|
163
163
|
* @param {boolean} [options.fullscreen.lockToLandscapeOnEnter=false]
|
|
164
164
|
* Whether to always lock orientation to landscape on fullscreen mode
|
|
165
165
|
* Unlocked when exiting fullscreen or on 'ended'
|
|
166
|
-
* @param {boolean} [options.fullscreen.iOS=false]
|
|
167
|
-
* Deprecated: Whether to disable iOS's native fullscreen so controls can work
|
|
168
166
|
* @param {Object} [options.touchControls={}]
|
|
169
167
|
* Touch UI options.
|
|
170
168
|
* @param {boolean} [options.touchControls.disabled=false]
|