mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-11 22:06:17 -08:00
artplayer@4.3.22
This commit is contained in:
1 parent
f07ea0796a
commit
e30aa833db
10 files changed
+15
-539
No files matched your search
@@ -1,7 +1,7 @@
|
||||
/*!
|
||||
* artplayer.js v4.3.21
|
||||
* artplayer.js v4.3.22
|
||||
* Github: https://github.com/zhw2590582/ArtPlayer
|
||||
* (c) 2017-2022 Harvey Zack
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
!function(e,t,r,o,i){var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},a="function"==typeof n.parcelRequire4dc0&&n.parcelRequire4dc0,s=a.cache||{},l="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function c(t,r){if(!s[t]){if(!e[t]){var o="function"==typeof n.parcelRequire4dc0&&n.parcelRequire4dc0;if(!r&&o)return o(t,!0);if(a)return a(t,!0);if(l&&"string"==typeof t)return l(t);var i=new Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}u.resolve=function(r){var o=e[t][1][r];return null!=o?o:r},u.cache={};var p=s[t]=new c.Module(t);e[t][0].call(p.exports,u,p,p.exports,this)}return s[t].exports;function u(e){var t=u.resolve(e);return!1===t?{}:c(t)}}c.isParcelRequire=!0,c.Module=function(e){this.id=e,this.bundle=c,this.exports={}},c.modules=e,c.cache=s,c.parent=a,c.register=function(t,r){e[t]=[function(e,t){t.exports=r},{}]},Object.defineProperty(c,"root",{get:function(){return n.parcelRequire4dc0}}),n.parcelRequire4dc0=c;for(var p=0;p<t.length;p++)c(t[p]);var u=c(r);"object"==typeof exports&&"undefined"!=typeof module?module.exports=u:"function"==typeof define&&define.amd&&define((function(){return u}))}({"6SN6P":[function(e,t,r){var o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(r);var i=e("bundle-text:./style/index.less"),n=o.interopDefault(i),a=e("option-validator"),s=o.interopDefault(a),l=e("./utils/emitter"),c=o.interopDefault(l),p=e("./utils"),u=e("./scheme"),d=o.interopDefault(u),f=e("./config"),h=o.interopDefault(f),m=e("./whitelist"),g=o.interopDefault(m),v=e("./template"),y=o.interopDefault(v),b=e("./i18n"),x=o.interopDefault(b),w=e("./player"),j=o.interopDefault(w),k=e("./control"),S=o.interopDefault(k),I=e("./contextmenu"),R=o.interopDefault(I),$=e("./info"),O=o.interopDefault($),M=e("./subtitle"),T=o.interopDefault(M),E=e("./events"),F=o.interopDefault(E),C=e("./hotkey"),P=o.interopDefault(C),z=e("./layer"),D=o.interopDefault(z),H=e("./loading"),A=o.interopDefault(H),L=e("./notice"),U=o.interopDefault(L),Z=e("./mask"),_=o.interopDefault(Z),N=e("./icons"),V=o.interopDefault(N),q=e("./setting"),W=o.interopDefault(q),B=e("./storage"),Y=o.interopDefault(B),G=e("./plugins"),X=o.interopDefault(G),J=e("./ads"),Q=o.interopDefault(J),K=e("./mobile"),ee=o.interopDefault(K);let te=0;const re=[];class oe extends c.default{constructor(e,t){super(),this.id=++te;const r=p.mergeDeep(oe.option,e);this.option=s.default(r,d.default),this.isReady=!1,this.isFocus=!1,this.isDestroy=!1,this.whitelist=new g.default(this),this.template=new y.default(this),this.events=new F.default(this),this.whitelist.state?(this.storage=new Y.default(this),this.icons=new V.default(this),this.i18n=new x.default(this),this.notice=new U.default(this),this.player=new j.default(this),this.layers=new D.default(this),this.controls=new S.default(this),this.contextmenu=new R.default(this),this.subtitle=new T.default(this),this.ads=new Q.default(this),this.info=new O.default(this),this.loading=new A.default(this),this.hotkey=new P.default(this),this.mask=new _.default(this),this.setting=new W.default(this),this.plugins=new X.default(this)):this.mobile=new ee.default(this),"function"==typeof t&&this.on("ready",(()=>t.call(this))),re.push(this)}static get instances(){return re}static get version(){return"4.3.21"}static get env(){return"production"}static get build(){return"1651807501594"}static get config(){return h.default}static get utils(){return p}static get scheme(){return d.default}static get Emitter(){return c.default}static get validator(){return s.default}static get kindOf(){return s.default.kindOf}static get html(){return y.default.html}static get option(){return{container:"#artplayer",url:"",poster:"",title:"",type:"",theme:"#f00",volume:.7,isLive:!1,muted:!1,autoplay:!1,autoSize:!1,autoMini:!1,loop:!1,flip:!1,playbackRate:!1,aspectRatio:!1,screenshot:!1,setting:!1,hotkey:!0,pip:!1,mutex:!0,backdrop:!0,fullscreen:!1,fullscreenWeb:!1,subtitleOffset:!1,miniProgressBar:!1,useSSR:!1,playsInline:!0,lock:!1,fastForward:!1,autoPlayback:!1,autoOrientation:!1,ads:[],layers:[],contextmenu:[],controls:[],settings:[],quality:[],highlight:[],plugins:[],whitelist:[],thumbnails:{url:"",number:60,column:10},subtitle:{url:"",type:"",style:{},encoding:"utf-8"},moreVideoAttr:{controls:!1,preload:p.isSafari?"auto":"metadata"},icons:{},customType:{},lang:navigator.language.toLowerCase()}}get proxy(){return this.events.proxy}get query(){return this.template.query}destroy(e=!0){this.events.destroy(),this.template.destroy(e),re.splice(re.indexOf(this),1),this.isDestroy=!0,this.emit("destroy")}}if(r.default=oe,oe.NOTICE_TIME=2e3,oe.SETTING_WIDTH=250,oe.SETTING_ITEM_WIDTH=200,oe.SETTING_ITEM_HEIGHT=35,oe.INDICATOR_SIZE=14,oe.INDICATOR_SIZE_ICON=16,oe.INDICATOR_SIZE_MOBILE=18,oe.INDICATOR_SIZE_MOBILE_ICON=20,oe.VOLUME_PANEL_WIDTH=60,oe.VOLUME_HANDLE_WIDTH=12,oe.RESIZE_TIME=500,Line truncated
|
||||
!function(e,t,r,o,i){var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},a="function"==typeof n.parcelRequire4dc0&&n.parcelRequire4dc0,s=a.cache||{},l="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function c(t,r){if(!s[t]){if(!e[t]){var o="function"==typeof n.parcelRequire4dc0&&n.parcelRequire4dc0;if(!r&&o)return o(t,!0);if(a)return a(t,!0);if(l&&"string"==typeof t)return l(t);var i=new Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}u.resolve=function(r){var o=e[t][1][r];return null!=o?o:r},u.cache={};var p=s[t]=new c.Module(t);e[t][0].call(p.exports,u,p,p.exports,this)}return s[t].exports;function u(e){var t=u.resolve(e);return!1===t?{}:c(t)}}c.isParcelRequire=!0,c.Module=function(e){this.id=e,this.bundle=c,this.exports={}},c.modules=e,c.cache=s,c.parent=a,c.register=function(t,r){e[t]=[function(e,t){t.exports=r},{}]},Object.defineProperty(c,"root",{get:function(){return n.parcelRequire4dc0}}),n.parcelRequire4dc0=c;for(var p=0;p<t.length;p++)c(t[p]);var u=c(r);"object"==typeof exports&&"undefined"!=typeof module?module.exports=u:"function"==typeof define&&define.amd&&define((function(){return u}))}({"6SN6P":[function(e,t,r){var o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(r);var i=e("bundle-text:./style/index.less"),n=o.interopDefault(i),a=e("option-validator"),s=o.interopDefault(a),l=e("./utils/emitter"),c=o.interopDefault(l),p=e("./utils"),u=e("./scheme"),d=o.interopDefault(u),f=e("./config"),h=o.interopDefault(f),m=e("./whitelist"),g=o.interopDefault(m),v=e("./template"),y=o.interopDefault(v),b=e("./i18n"),x=o.interopDefault(b),w=e("./player"),j=o.interopDefault(w),k=e("./control"),S=o.interopDefault(k),I=e("./contextmenu"),R=o.interopDefault(I),$=e("./info"),O=o.interopDefault($),M=e("./subtitle"),T=o.interopDefault(M),E=e("./events"),F=o.interopDefault(E),C=e("./hotkey"),P=o.interopDefault(C),z=e("./layer"),D=o.interopDefault(z),H=e("./loading"),A=o.interopDefault(H),L=e("./notice"),U=o.interopDefault(L),Z=e("./mask"),_=o.interopDefault(Z),V=e("./icons"),q=o.interopDefault(V),N=e("./setting"),W=o.interopDefault(N),B=e("./storage"),Y=o.interopDefault(B),G=e("./plugins"),X=o.interopDefault(G),J=e("./ads"),Q=o.interopDefault(J),K=e("./mobile"),ee=o.interopDefault(K);let te=0;const re=[];class oe extends c.default{constructor(e,t){super(),this.id=++te;const r=p.mergeDeep(oe.option,e);this.option=s.default(r,d.default),this.isReady=!1,this.isFocus=!1,this.isDestroy=!1,this.whitelist=new g.default(this),this.template=new y.default(this),this.events=new F.default(this),this.whitelist.state?(this.storage=new Y.default(this),this.icons=new q.default(this),this.i18n=new x.default(this),this.notice=new U.default(this),this.player=new j.default(this),this.layers=new D.default(this),this.controls=new S.default(this),this.contextmenu=new R.default(this),this.subtitle=new T.default(this),this.ads=new Q.default(this),this.info=new O.default(this),this.loading=new A.default(this),this.hotkey=new P.default(this),this.mask=new _.default(this),this.setting=new W.default(this),this.plugins=new X.default(this)):this.mobile=new ee.default(this),"function"==typeof t&&this.on("ready",(()=>t.call(this))),re.push(this)}static get instances(){return re}static get version(){return"4.3.22"}static get env(){return"production"}static get build(){return"1651825338589"}static get config(){return h.default}static get utils(){return p}static get scheme(){return d.default}static get Emitter(){return c.default}static get validator(){return s.default}static get kindOf(){return s.default.kindOf}static get html(){return y.default.html}static get option(){return{container:"#artplayer",url:"",poster:"",title:"",type:"",theme:"#f00",volume:.7,isLive:!1,muted:!1,autoplay:!1,autoSize:!1,autoMini:!1,loop:!1,flip:!1,playbackRate:!1,aspectRatio:!1,screenshot:!1,setting:!1,hotkey:!0,pip:!1,mutex:!0,backdrop:!0,fullscreen:!1,fullscreenWeb:!1,subtitleOffset:!1,miniProgressBar:!1,useSSR:!1,playsInline:!0,lock:!1,fastForward:!1,autoPlayback:!1,autoOrientation:!1,ads:[],layers:[],contextmenu:[],controls:[],settings:[],quality:[],highlight:[],plugins:[],whitelist:[],thumbnails:{url:"",number:60,column:10},subtitle:{url:"",type:"",style:{},encoding:"utf-8"},moreVideoAttr:{controls:!1,preload:p.isSafari?"auto":"metadata"},icons:{},customType:{},lang:navigator.language.toLowerCase()}}get proxy(){return this.events.proxy}get query(){return this.template.query}destroy(e=!0){this.events.destroy(),this.template.destroy(e),re.splice(re.indexOf(this),1),this.isDestroy=!0,this.emit("destroy")}}if(r.default=oe,oe.NOTICE_TIME=2e3,oe.SETTING_WIDTH=250,oe.SETTING_ITEM_WIDTH=200,oe.SETTING_ITEM_HEIGHT=35,oe.INDICATOR_SIZE=14,oe.INDICATOR_SIZE_ICON=16,oe.INDICATOR_SIZE_MOBILE=18,oe.INDICATOR_SIZE_MOBILE_ICON=20,oe.VOLUME_PANEL_WIDTH=60,oe.VOLUME_HANDLE_WIDTH=12,oe.RESIZE_TIME=500,Line truncated
|
||||
@@ -236,13 +236,13 @@ class Artplayer extends _emitterDefault.default {
|
||||
return instances;
|
||||
}
|
||||
static get version() {
|
||||
return "4.3.21";
|
||||
return "4.3.22";
|
||||
}
|
||||
static get env() {
|
||||
return "development";
|
||||
}
|
||||
static get build() {
|
||||
return "1651807466198";
|
||||
return "1651825308574";
|
||||
}
|
||||
static get config() {
|
||||
return _configDefault.default;
|
||||
@@ -1251,7 +1251,7 @@ class Template {
|
||||
<div class="art-info-panel">
|
||||
<div class="art-info-item">
|
||||
<div class="art-info-title">Player version:</div>
|
||||
<div class="art-info-content">${"4.3.21"}</div>
|
||||
<div class="art-info-content">${"4.3.22"}</div>
|
||||
</div>
|
||||
<div class="art-info-item">
|
||||
<div class="art-info-title">Video url:</div>
|
||||
@@ -1935,7 +1935,7 @@ function fullscreenMix(art1) {
|
||||
}
|
||||
exports.default = fullscreenMix;
|
||||
|
||||
},{"../libs/screenfull":"kv2jZ","../utils":"jmgNb","@parcel/transformer-js/src/esmodule-helpers.js":"5dUr6"}],"kv2jZ":[function(require,module,exports) {
|
||||
},{"../libs/screenfull":"eQous","../utils":"jmgNb","@parcel/transformer-js/src/esmodule-helpers.js":"5dUr6"}],"eQous":[function(require,module,exports) {
|
||||
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
||||
parcelHelpers.defineInteropFlag(exports);
|
||||
function getScreenfull() {
|
||||
@@ -1987,7 +1987,7 @@ function getScreenfull() {
|
||||
const unprefixedMethods = methodMap[0];
|
||||
const returnValue = {};
|
||||
for (const methodList of methodMap){
|
||||
const exitFullscreenMethod = methodList?.[1];
|
||||
const exitFullscreenMethod = methodList[1];
|
||||
if (exitFullscreenMethod in document) {
|
||||
for (const [index, method] of methodList.entries())returnValue[unprefixedMethods[index]] = method;
|
||||
return returnValue;
|
||||
@@ -3712,7 +3712,7 @@ parcelHelpers.defineInteropFlag(exports);
|
||||
function version(option) {
|
||||
return {
|
||||
...option,
|
||||
html: `<a href="https://artplayer.org" target="_blank">ArtPlayer ${"4.3.21"}</a>`
|
||||
html: `<a href="https://artplayer.org" target="_blank">ArtPlayer ${"4.3.22"}</a>`
|
||||
};
|
||||
}
|
||||
exports.default = version;
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAAA,0DAAmD;;AACnD,kDAAyC;;AACzC,yCAAsC;;AACtC,+BAAiC;AACjC,iCAA8B;;AAC9B,iCAA8B;;AAC9B,uCAAoC;;AACpC,qCAAkC;;AAClC,6BAA0B;;AAC1B,iCAA8B;;AAC9B,mCAAgC;;AAChC,2CAAwC;;AACxC,6BAA0B;;AAC1B,qCAAkC;;AAClC,iCAA8B;;AAC9B,iCAA8B;;AAC9B,+BAA4B;;AAC5B,mCAAgC;;AAChC,iCAA8B;;AAC9B,6BAA0B;;AAC1B,+BAA4B;;AAC5B,mCAAgC;;AAChC,mCAAgC;;AAChC,mCAAgC;;AAChC,2BAAwB;;AACxB,iCAA8B;;AAE9B,IAAI,EAAE,GAAG,CAAC,AAAC;AACX,MAAM,SAAS,GAAG,EAAE,AAAC;AACN,MAAM,SAAS,SAAS,uBAAO;IAC1C,YAAY,MAAM,EAAE,aAAa,CAAE;QAC/B,KAAK,EAAE,CAAC;QAER,IAAI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layer
|
||||
* (c) 2017-2022 Harvey Zack
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
!function(e,t,r,o,i){var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},a="function"==typeof n.parcelRequire4dc0&&n.parcelRequire4dc0,s=a.cache||{},l="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function c(t,r){if(!s[t]){if(!e[t]){var o="function"==typeof n.parcelRequire4dc0&&n.parcelRequire4dc0;if(!r&&o)return o(t,!0);if(a)return a(t,!0);if(l&&"string"==typeof t)return l(t);var i=new Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}u.resolve=function(r){var o=e[t][1][r];return null!=o?o:r},u.cache={};var p=s[t]=new c.Module(t);e[t][0].call(p.exports,u,p,p.exports,this)}return s[t].exports;function u(e){var t=u.resolve(e);return!1===t?{}:c(t)}}c.isParcelRequire=!0,c.Module=function(e){this.id=e,this.bundle=c,this.exports={}},c.modules=e,c.cache=s,c.parent=a,c.register=function(t,r){e[t]=[function(e,t){t.exports=r},{}]},Object.defineProperty(c,"root",{get:function(){return n.parcelRequire4dc0}}),n.parcelRequire4dc0=c;for(var p=0;p<t.length;p++)c(t[p]);var u=c(r);"object"==typeof exports&&"undefined"!=typeof module?module.exports=u:"function"==typeof define&&define.amd&&define((function(){return u}))}({"6SN6P":[function(e,t,r){var o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(r);var i=e("bundle-text:./style/index.less"),n=o.interopDefault(i),a=e("option-validator"),s=o.interopDefault(a),l=e("./utils/emitter"),c=o.interopDefault(l),p=e("./utils"),u=e("./scheme"),d=o.interopDefault(u),f=e("./config"),h=o.interopDefault(f),m=e("./whitelist"),g=o.interopDefault(m),v=e("./template"),y=o.interopDefault(v),b=e("./i18n"),x=o.interopDefault(b),w=e("./player"),j=o.interopDefault(w),k=e("./control"),S=o.interopDefault(k),I=e("./contextmenu"),R=o.interopDefault(I),$=e("./info"),O=o.interopDefault($),M=e("./subtitle"),T=o.interopDefault(M),E=e("./events"),F=o.interopDefault(E),C=e("./hotkey"),P=o.interopDefault(C),z=e("./layer"),D=o.interopDefault(z),H=e("./loading"),A=o.interopDefault(H),L=e("./notice"),U=o.interopDefault(L),Z=e("./mask"),_=o.interopDefault(Z),N=e("./icons"),V=o.interopDefault(N),q=e("./setting"),W=o.interopDefault(q),B=e("./storage"),Y=o.interopDefault(B),G=e("./plugins"),X=o.interopDefault(G),J=e("./ads"),Q=o.interopDefault(J),K=e("./mobile"),ee=o.interopDefault(K);let te=0;const re=[];class oe extends c.default{constructor(e,t){super(),this.id=++te;const r=p.mergeDeep(oe.option,e);this.option=s.default(r,d.default),this.isReady=!1,this.isFocus=!1,this.isDestroy=!1,this.whitelist=new g.default(this),this.template=new y.default(this),this.events=new F.default(this),this.whitelist.state?(this.storage=new Y.default(this),this.icons=new V.default(this),this.i18n=new x.default(this),this.notice=new U.default(this),this.player=new j.default(this),this.layers=new D.default(this),this.controls=new S.default(this),this.contextmenu=new R.default(this),this.subtitle=new T.default(this),this.ads=new Q.default(this),this.info=new O.default(this),this.loading=new A.default(this),this.hotkey=new P.default(this),this.mask=new _.default(this),this.setting=new W.default(this),this.plugins=new X.default(this)):this.mobile=new ee.default(this),"function"==typeof t&&this.on("ready",(()=>t.call(this))),re.push(this)}static get instances(){return re}static get version(){return"4.3.21"}static get env(){return"production"}static get build(){return"1651807501594"}static get config(){return h.default}static get utils(){return p}static get scheme(){return d.default}static get Emitter(){return c.default}static get validator(){return s.default}static get kindOf(){return s.default.kindOf}static get html(){return y.default.html}static get option(){return{container:"#artplayer",url:"",poster:"",title:"",type:"",theme:"#f00",volume:.7,isLive:!1,muted:!1,autoplay:!1,autoSize:!1,autoMini:!1,loop:!1,flip:!1,playbackRate:!1,aspectRatio:!1,screenshot:!1,setting:!1,hotkey:!0,pip:!1,mutex:!0,backdrop:!0,fullscreen:!1,fullscreenWeb:!1,subtitleOffset:!1,miniProgressBar:!1,useSSR:!1,playsInline:!0,lock:!1,fastForward:!1,autoPlayback:!1,autoOrientation:!1,ads:[],layers:[],contextmenu:[],controls:[],settings:[],quality:[],highlight:[],plugins:[],whitelist:[],thumbnails:{url:"",number:60,column:10},subtitle:{url:"",type:"",style:{},encoding:"utf-8"},moreVideoAttr:{controls:!1,preload:p.isSafari?"auto":"metadata"},icons:{},customType:{},lang:navigator.language.toLowerCase()}}get proxy(){return this.events.proxy}get query(){return this.template.query}destroy(e=!0){this.events.destroy(),this.template.destroy(e),re.splice(re.indexOf(this),1),this.isDestroy=!0,this.emit("destroy")}}if(r.default=oe,oe.NOTICE_TIME=2e3,oe.SETTING_WIDTH=250,oe.SETTING_ITEM_WIDTH=200,oe.SETTING_ITEM_HEIGHT=35,oe.INDICATOR_SIZE=14,oe.INDICATOR_SIZE_ICON=16,oe.INDICATOR_SIZE_MOBILE=18,oe.INDICATOR_SIZE_MOBILE_ICON=20,oe.VOLUME_PANEL_WIDTH=60,oe.VOLUME_HANDLE_WIDTH=12,oe.RESIZE_TIME=500,Line truncated
|
||||
!function(e,t,r,o,i){var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},a="function"==typeof n.parcelRequire4dc0&&n.parcelRequire4dc0,s=a.cache||{},l="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function c(t,r){if(!s[t]){if(!e[t]){var o="function"==typeof n.parcelRequire4dc0&&n.parcelRequire4dc0;if(!r&&o)return o(t,!0);if(a)return a(t,!0);if(l&&"string"==typeof t)return l(t);var i=new Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}u.resolve=function(r){var o=e[t][1][r];return null!=o?o:r},u.cache={};var p=s[t]=new c.Module(t);e[t][0].call(p.exports,u,p,p.exports,this)}return s[t].exports;function u(e){var t=u.resolve(e);return!1===t?{}:c(t)}}c.isParcelRequire=!0,c.Module=function(e){this.id=e,this.bundle=c,this.exports={}},c.modules=e,c.cache=s,c.parent=a,c.register=function(t,r){e[t]=[function(e,t){t.exports=r},{}]},Object.defineProperty(c,"root",{get:function(){return n.parcelRequire4dc0}}),n.parcelRequire4dc0=c;for(var p=0;p<t.length;p++)c(t[p]);var u=c(r);"object"==typeof exports&&"undefined"!=typeof module?module.exports=u:"function"==typeof define&&define.amd&&define((function(){return u}))}({"6SN6P":[function(e,t,r){var o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(r);var i=e("bundle-text:./style/index.less"),n=o.interopDefault(i),a=e("option-validator"),s=o.interopDefault(a),l=e("./utils/emitter"),c=o.interopDefault(l),p=e("./utils"),u=e("./scheme"),d=o.interopDefault(u),f=e("./config"),h=o.interopDefault(f),m=e("./whitelist"),g=o.interopDefault(m),v=e("./template"),y=o.interopDefault(v),b=e("./i18n"),x=o.interopDefault(b),w=e("./player"),j=o.interopDefault(w),k=e("./control"),S=o.interopDefault(k),I=e("./contextmenu"),R=o.interopDefault(I),$=e("./info"),O=o.interopDefault($),M=e("./subtitle"),T=o.interopDefault(M),E=e("./events"),F=o.interopDefault(E),C=e("./hotkey"),P=o.interopDefault(C),z=e("./layer"),D=o.interopDefault(z),H=e("./loading"),A=o.interopDefault(H),L=e("./notice"),U=o.interopDefault(L),Z=e("./mask"),_=o.interopDefault(Z),V=e("./icons"),q=o.interopDefault(V),N=e("./setting"),W=o.interopDefault(N),B=e("./storage"),Y=o.interopDefault(B),G=e("./plugins"),X=o.interopDefault(G),J=e("./ads"),Q=o.interopDefault(J),K=e("./mobile"),ee=o.interopDefault(K);let te=0;const re=[];class oe extends c.default{constructor(e,t){super(),this.id=++te;const r=p.mergeDeep(oe.option,e);this.option=s.default(r,d.default),this.isReady=!1,this.isFocus=!1,this.isDestroy=!1,this.whitelist=new g.default(this),this.template=new y.default(this),this.events=new F.default(this),this.whitelist.state?(this.storage=new Y.default(this),this.icons=new q.default(this),this.i18n=new x.default(this),this.notice=new U.default(this),this.player=new j.default(this),this.layers=new D.default(this),this.controls=new S.default(this),this.contextmenu=new R.default(this),this.subtitle=new T.default(this),this.ads=new Q.default(this),this.info=new O.default(this),this.loading=new A.default(this),this.hotkey=new P.default(this),this.mask=new _.default(this),this.setting=new W.default(this),this.plugins=new X.default(this)):this.mobile=new ee.default(this),"function"==typeof t&&this.on("ready",(()=>t.call(this))),re.push(this)}static get instances(){return re}static get version(){return"4.3.22"}static get env(){return"production"}static get build(){return"1651825338589"}static get config(){return h.default}static get utils(){return p}static get scheme(){return d.default}static get Emitter(){return c.default}static get validator(){return s.default}static get kindOf(){return s.default.kindOf}static get html(){return y.default.html}static get option(){return{container:"#artplayer",url:"",poster:"",title:"",type:"",theme:"#f00",volume:.7,isLive:!1,muted:!1,autoplay:!1,autoSize:!1,autoMini:!1,loop:!1,flip:!1,playbackRate:!1,aspectRatio:!1,screenshot:!1,setting:!1,hotkey:!0,pip:!1,mutex:!0,backdrop:!0,fullscreen:!1,fullscreenWeb:!1,subtitleOffset:!1,miniProgressBar:!1,useSSR:!1,playsInline:!0,lock:!1,fastForward:!1,autoPlayback:!1,autoOrientation:!1,ads:[],layers:[],contextmenu:[],controls:[],settings:[],quality:[],highlight:[],plugins:[],whitelist:[],thumbnails:{url:"",number:60,column:10},subtitle:{url:"",type:"",style:{},encoding:"utf-8"},moreVideoAttr:{controls:!1,preload:p.isSafari?"auto":"metadata"},icons:{},customType:{},lang:navigator.language.toLowerCase()}}get proxy(){return this.events.proxy}get query(){return this.template.query}destroy(e=!0){this.events.destroy(),this.template.destroy(e),re.splice(re.indexOf(this),1),this.isDestroy=!0,this.emit("destroy")}}if(r.default=oe,oe.NOTICE_TIME=2e3,oe.SETTING_WIDTH=250,oe.SETTING_ITEM_WIDTH=200,oe.SETTING_ITEM_HEIGHT=35,oe.INDICATOR_SIZE=14,oe.INDICATOR_SIZE_ICON=16,oe.INDICATOR_SIZE_MOBILE=18,oe.INDICATOR_SIZE_MOBILE_ICON=20,oe.VOLUME_PANEL_WIDTH=60,oe.VOLUME_HANDLE_WIDTH=12,oe.RESIZE_TIME=500,Line truncated
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"license": "MIT",
|
||||
"name": "artplayer",
|
||||
"version": "4.3.21",
|
||||
"version": "4.3.22",
|
||||
"main": "dist/artplayer.js",
|
||||
"types": "types/artplayer.d.ts",
|
||||
"homepage": "https://artPlayer.org",
|
||||
|
||||
+3
-1
@@ -1,3 +1,5 @@
|
||||
// https://github.com/sindresorhus/screenfull@6.0.1
|
||||
|
||||
export default function getScreenfull() {
|
||||
const methodMap = [
|
||||
[
|
||||
@@ -49,7 +51,7 @@ export default function getScreenfull() {
|
||||
const returnValue = {};
|
||||
|
||||
for (const methodList of methodMap) {
|
||||
const exitFullscreenMethod = methodList?.[1];
|
||||
const exitFullscreenMethod = methodList[1];
|
||||
if (exitFullscreenMethod in document) {
|
||||
for (const [index, method] of methodList.entries()) {
|
||||
returnValue[unprefixedMethods[index]] = method;
|
||||
-175
@@ -1,175 +0,0 @@
|
||||
export type RawEventNames = {
|
||||
readonly requestFullscreen: string;
|
||||
readonly exitFullscreen: string;
|
||||
readonly fullscreenElement: string;
|
||||
readonly fullscreenEnabled: string;
|
||||
readonly fullscreenchange: string;
|
||||
readonly fullscreenerror: string;
|
||||
};
|
||||
|
||||
export type EventName = 'change' | 'error';
|
||||
|
||||
/**
|
||||
Simple wrapper for cross-browser usage of the JavaScript [Fullscreen API](https://developer.mozilla.org/en/DOM/Using_full-screen_mode), which lets you bring the page or any element into fullscreen. Smoothens out the browser implementation differences, so you don't have to.
|
||||
*/
|
||||
declare const screenfull: {
|
||||
/**
|
||||
Whether fullscreen is active.
|
||||
*/
|
||||
readonly isFullscreen: boolean;
|
||||
|
||||
/**
|
||||
The element currently in fullscreen, otherwise `undefined`.
|
||||
*/
|
||||
readonly element: Element | undefined;
|
||||
|
||||
/**
|
||||
Whether you are allowed to enter fullscreen. If your page is inside an `<iframe>` you will need to add a `allowfullscreen` attribute (+ `webkitallowfullscreen` and `mozallowfullscreen`).
|
||||
|
||||
@example
|
||||
```
|
||||
import screenfull from 'screenfull';
|
||||
|
||||
if (screenfull.isEnabled) {
|
||||
screenfull.request();
|
||||
}
|
||||
```
|
||||
*/
|
||||
readonly isEnabled: boolean;
|
||||
|
||||
/**
|
||||
Exposes the raw properties (prefixed if needed) used internally.
|
||||
*/
|
||||
raw: RawEventNames;
|
||||
|
||||
/**
|
||||
Make an element fullscreen.
|
||||
|
||||
If your page is inside an `<iframe>` you will need to add a `allowfullscreen` attribute (+ `webkitallowfullscreen` and `mozallowfullscreen`).
|
||||
|
||||
Keep in mind that the browser will only enter fullscreen when initiated by user events like click, touch, key.
|
||||
|
||||
@param element - Default is `<html>`. If called with another element than the currently active, it will switch to that if it's a descendant.
|
||||
@param options - [`FullscreenOptions`](https://developer.mozilla.org/en-US/docs/Web/API/FullscreenOptions).
|
||||
@returns A promise that resolves after the element enters fullscreen.
|
||||
|
||||
@example
|
||||
```
|
||||
import screenfull from 'screenfull';
|
||||
|
||||
// Fullscreen the page
|
||||
document.getElementById('button').addEventListener('click', () => {
|
||||
if (screenfull.isEnabled) {
|
||||
screenfull.request();
|
||||
} else {
|
||||
// Ignore or do something else
|
||||
}
|
||||
});
|
||||
|
||||
// Fullscreen an element
|
||||
const element = document.getElementById('target');
|
||||
|
||||
document.getElementById('button').addEventListener('click', () => {
|
||||
if (screenfull.isEnabled) {
|
||||
screenfull.request(element);
|
||||
}
|
||||
});
|
||||
|
||||
// Fullscreen an element with options
|
||||
const element = document.getElementById('target');
|
||||
|
||||
document.getElementById('button').addEventListener('click', () => {
|
||||
if (screenfull.isEnabled) {
|
||||
screenfull.request(element, {navigationUI: 'hide'});
|
||||
}
|
||||
});
|
||||
|
||||
// Fullscreen an element with jQuery
|
||||
const element = $('#target')[0]; // Get DOM element from jQuery collection
|
||||
|
||||
$('#button').on('click', () => {
|
||||
if (screenfull.isEnabled) {
|
||||
screenfull.request(element);
|
||||
}
|
||||
});
|
||||
```
|
||||
*/
|
||||
request(element?: Element, options?: FullscreenOptions): Promise<void>;
|
||||
|
||||
/**
|
||||
Brings you out of fullscreen.
|
||||
|
||||
@returns A promise that resolves after the element exits fullscreen.
|
||||
*/
|
||||
exit(): Promise<void>;
|
||||
|
||||
/**
|
||||
Requests fullscreen if not active, otherwise exits.
|
||||
|
||||
@param element - The default is `<html>`. If called with another element than the currently active, it will switch to that if it's a descendant.
|
||||
@param options - [`FullscreenOptions`](https://developer.mozilla.org/en-US/docs/Web/API/FullscreenOptions).
|
||||
@returns A promise that resolves after the element enters/exits fullscreen.
|
||||
|
||||
@example
|
||||
```
|
||||
import screenfull from 'screenfull';
|
||||
|
||||
// Toggle fullscreen on a image with jQuery
|
||||
|
||||
$('img').on('click', event => {
|
||||
if (screenfull.isEnabled) {
|
||||
screenfull.toggle(event.target);
|
||||
}
|
||||
});
|
||||
```
|
||||
*/
|
||||
toggle(element?: Element, options?: FullscreenOptions): Promise<void>;
|
||||
|
||||
/**
|
||||
Add a listener for when the browser switches in and out of fullscreen or when there is an error.
|
||||
|
||||
@example
|
||||
```
|
||||
import screenfull from 'screenfull';
|
||||
|
||||
// Detect fullscreen change
|
||||
if (screenfull.isEnabled) {
|
||||
screenfull.on('change', () => {
|
||||
console.log('Am I fullscreen?', screenfull.isFullscreen ? 'Yes' : 'No');
|
||||
});
|
||||
}
|
||||
|
||||
// Detect fullscreen error
|
||||
if (screenfull.isEnabled) {
|
||||
screenfull.on('error', event => {
|
||||
console.error('Failed to enable fullscreen', event);
|
||||
});
|
||||
}
|
||||
```
|
||||
*/
|
||||
on(name: EventName, handler: (event: Event) => void): void;
|
||||
|
||||
/**
|
||||
Remove a previously registered event listener.
|
||||
|
||||
@example
|
||||
```
|
||||
import screenfull from 'screenfull';
|
||||
|
||||
screenfull.off('change', callback);
|
||||
```
|
||||
*/
|
||||
off(name: EventName, handler: (event: Event) => void): void;
|
||||
|
||||
/**
|
||||
Alias for `.on('change', function)`.
|
||||
*/
|
||||
onchange(handler: (event: Event) => void): void;
|
||||
|
||||
/**
|
||||
Alias for `.on('error', function)`.
|
||||
*/
|
||||
onerror(handler: (event: Event) => void): void;
|
||||
};
|
||||
|
||||
export default screenfull;
|
||||
@@ -1,9 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
@@ -1,39 +0,0 @@
|
||||
{
|
||||
"name": "screenfull",
|
||||
"version": "6.0.1",
|
||||
"description": "Simple wrapper for cross-browser usage of the JavaScript Fullscreen API, which lets you bring the page or any element into fullscreen.",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/screenfull",
|
||||
"funding": "https://github.com/sponsors/sindresorhus",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"type": "module",
|
||||
"exports": "./index.js",
|
||||
"engines": {
|
||||
"node": "^14.13.1 || >=16.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && tsd"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"keywords": [
|
||||
"browser",
|
||||
"fullscreen"
|
||||
],
|
||||
"devDependencies": {
|
||||
"tsd": "^0.18.0",
|
||||
"xo": "^0.45.0"
|
||||
},
|
||||
"xo": {
|
||||
"envs": [
|
||||
"node",
|
||||
"browser"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,303 +0,0 @@
|
||||
# screenfull
|
||||
|
||||
> Simple wrapper for cross-browser usage of the JavaScript [Fullscreen API](https://developer.mozilla.org/en/DOM/Using_full-screen_mode), which lets you bring the page or any element into fullscreen. Smoothens out the browser implementation differences, so you don't have to.
|
||||
|
||||
**This package is ESM. Please [familiarize](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) yourself with that that implies.**\
|
||||
If you cannot use ESM or need to support older browsers without using transpilation, use version 5.2.0.
|
||||
|
||||
**[Not supported on iPhone](#support)**
|
||||
|
||||
**This package is feature complete. No new features will be accepted.**
|
||||
|
||||
#### [Demo](https://sindresorhus.com/screenfull)
|
||||
|
||||
## Install
|
||||
|
||||
Only 0.7 kB gzipped.
|
||||
|
||||
```sh
|
||||
npm install screenfull
|
||||
```
|
||||
|
||||
Also available on [cdnjs](https://cdnjs.com/libraries/screenfull.js/5.1.0) *(older version)*.
|
||||
|
||||
## Why?
|
||||
|
||||
### Screenfull
|
||||
|
||||
```js
|
||||
import screenfull from 'screenfull';
|
||||
|
||||
if (screenfull.isEnabled) {
|
||||
screenfull.request();
|
||||
}
|
||||
```
|
||||
|
||||
### Vanilla JavaScript
|
||||
|
||||
```js
|
||||
document.fullscreenEnabled =
|
||||
document.fullscreenEnabled ||
|
||||
document.mozFullScreenEnabled ||
|
||||
document.documentElement.webkitRequestFullScreen;
|
||||
|
||||
function requestFullscreen(element) {
|
||||
if (element.requestFullscreen) {
|
||||
element.requestFullscreen();
|
||||
} else if (element.mozRequestFullScreen) {
|
||||
element.mozRequestFullScreen();
|
||||
} else if (element.webkitRequestFullScreen) {
|
||||
element.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
|
||||
}
|
||||
}
|
||||
|
||||
if (document.fullscreenEnabled) {
|
||||
requestFullscreen(document.documentElement);
|
||||
}
|
||||
|
||||
// This is not even entirely comprehensive. There's more.
|
||||
```
|
||||
|
||||
## Support
|
||||
|
||||
[Supported browsers](https://caniuse.com/#feat=fullscreen)
|
||||
|
||||
**Note:** Safari is supported on desktop and iPad, but not on iPhone. This is a limitation in the browser, not in Screenfull.
|
||||
|
||||
## Documentation
|
||||
|
||||
### Examples
|
||||
|
||||
#### Fullscreen the page
|
||||
|
||||
```js
|
||||
import screenfull from 'screenfull';
|
||||
|
||||
document.getElementById('button').addEventListener('click', () => {
|
||||
if (screenfull.isEnabled) {
|
||||
screenfull.request();
|
||||
} else {
|
||||
// Ignore or do something else
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
#### Fullscreen an element
|
||||
|
||||
```js
|
||||
import screenfull from 'screenfull';
|
||||
|
||||
const element = document.getElementById('target');
|
||||
|
||||
document.getElementById('button').addEventListener('click', () => {
|
||||
if (screenfull.isEnabled) {
|
||||
screenfull.request(element);
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
#### Hide navigation user-interface on mobile devices
|
||||
|
||||
```js
|
||||
import screenfull from 'screenfull';
|
||||
|
||||
const element = document.getElementById('target');
|
||||
|
||||
document.getElementById('button').addEventListener('click', () => {
|
||||
if (screenfull.isEnabled) {
|
||||
screenfull.request(element, {navigationUI: 'hide'});
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
#### Fullscreen an element with jQuery
|
||||
|
||||
```js
|
||||
import screenfull from 'screenfull';
|
||||
|
||||
const element = $('#target')[0]; // Get DOM element from jQuery collection
|
||||
|
||||
$('#button').on('click', () => {
|
||||
if (screenfull.isEnabled) {
|
||||
screenfull.request(element);
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
#### Toggle fullscreen on a image with jQuery
|
||||
|
||||
```js
|
||||
import screenfull from 'screenfull';
|
||||
|
||||
$('img').on('click', event => {
|
||||
if (screenfull.isEnabled) {
|
||||
screenfull.toggle(event.target);
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
#### Detect fullscreen change
|
||||
|
||||
```js
|
||||
import screenfull from 'screenfull';
|
||||
|
||||
if (screenfull.isEnabled) {
|
||||
screenfull.on('change', () => {
|
||||
console.log('Am I fullscreen?', screenfull.isFullscreen ? 'Yes' : 'No');
|
||||
});
|
||||
}
|
||||
```
|
||||
|
||||
Remove listeners with:
|
||||
|
||||
```js
|
||||
import screenfull from 'screenfull';
|
||||
|
||||
screenfull.off('change', callback);
|
||||
```
|
||||
|
||||
#### Detect fullscreen error
|
||||
|
||||
```js
|
||||
import screenfull from 'screenfull';
|
||||
|
||||
if (screenfull.isEnabled) {
|
||||
screenfull.on('error', event => {
|
||||
console.error('Failed to enable fullscreen', event);
|
||||
});
|
||||
}
|
||||
```
|
||||
|
||||
See the [demo](https://sindresorhus.com/screenfull) for more examples, and view the source.
|
||||
|
||||
#### Fullscreen an element with Angular.js
|
||||
|
||||
You can use the [Angular.js binding](https://github.com/hrajchert/angular-screenfull) to do something like:
|
||||
|
||||
```html
|
||||
<div ngsf-fullscreen>
|
||||
<p>This is a fullscreen element</p>
|
||||
<button ngsf-toggle-fullscreen>Toggle fullscreen</button>
|
||||
</div>
|
||||
```
|
||||
|
||||
#### Fullscreen the page with Angular 2
|
||||
|
||||
```ts
|
||||
import {Directive, HostListener} from '@angular/core';
|
||||
import screenfull from 'screenfull';
|
||||
|
||||
@Directive({
|
||||
selector: '[toggleFullscreen]'
|
||||
})
|
||||
export class ToggleFullscreenDirective {
|
||||
@HostListener('click') onClick() {
|
||||
if (screenfull.isEnabled) {
|
||||
screenfull.toggle();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
```html
|
||||
<button toggleFullscreen>Toggle fullscreen<button>
|
||||
```
|
||||
|
||||
### API
|
||||
|
||||
#### .request(element, options?)
|
||||
|
||||
Make an element fullscreen.
|
||||
|
||||
Accepts a DOM element and [`FullscreenOptions`](https://developer.mozilla.org/en-US/docs/Web/API/FullscreenOptions).
|
||||
|
||||
The default element is `<html>`. If called with another element than the currently active, it will switch to that if it's a descendant.
|
||||
|
||||
If your page is inside an `<iframe>` you will need to add a `allowfullscreen` attribute (+ `webkitallowfullscreen` and `mozallowfullscreen`).
|
||||
|
||||
Keep in mind that the browser will only enter fullscreen when initiated by user events like click, touch, key.
|
||||
|
||||
Returns a promise that resolves after the element enters fullscreen.
|
||||
|
||||
#### .exit()
|
||||
|
||||
Brings you out of fullscreen.
|
||||
|
||||
Returns a promise that resolves after the element exits fullscreen.
|
||||
|
||||
#### .toggle(element, options?)
|
||||
|
||||
Requests fullscreen if not active, otherwise exits.
|
||||
|
||||
Accepts a DOM element and [`FullscreenOptions`](https://developer.mozilla.org/en-US/docs/Web/API/FullscreenOptions).
|
||||
|
||||
Returns a promise that resolves after the element enters/exits fullscreen.
|
||||
|
||||
#### .on(event, function)
|
||||
|
||||
Events: `'change' | 'error'`
|
||||
|
||||
Add a listener for when the browser switches in and out of fullscreen or when there is an error.
|
||||
|
||||
#### .off(event, function)
|
||||
|
||||
Remove a previously registered event listener.
|
||||
|
||||
#### .onchange(function)
|
||||
|
||||
Alias for `.on('change', function)`
|
||||
|
||||
#### .onerror(function)
|
||||
|
||||
Alias for `.on('error', function)`
|
||||
|
||||
#### .isFullscreen
|
||||
|
||||
Returns a boolean whether fullscreen is active.
|
||||
|
||||
#### .element
|
||||
|
||||
Returns the element currently in fullscreen, otherwise `undefined`.
|
||||
|
||||
#### .isEnabled
|
||||
|
||||
Returns a boolean whether you are allowed to enter fullscreen. If your page is inside an `<iframe>` you will need to add a `allowfullscreen` attribute (+ `webkitallowfullscreen` and `mozallowfullscreen`).
|
||||
|
||||
#### .raw
|
||||
|
||||
Exposes the raw properties (prefixed if needed) used internally: `requestFullscreen`, `exitFullscreen`, `fullscreenElement`, `fullscreenEnabled`, `fullscreenchange`, `fullscreenerror`
|
||||
|
||||
## FAQ
|
||||
|
||||
### How can I navigate to a new page when fullscreen?
|
||||
|
||||
That's not supported by browsers for security reasons. There is, however, a dirty workaround. Create a seamless iframe that fills the screen and navigate to the page in that instead.
|
||||
|
||||
```js
|
||||
import screenfull from 'screenfull';
|
||||
|
||||
document.querySelector('#new-page-button').addEventListener(() => {
|
||||
const iframe = document.createElement('iframe')
|
||||
|
||||
iframe.setAttribute('id', 'external-iframe');
|
||||
iframe.setAttribute('src', 'https://new-page-website.com');
|
||||
iframe.setAttribute('frameborder', 'no');
|
||||
iframe.style.position = 'absolute';
|
||||
iframe.style.top = '0';
|
||||
iframe.style.right = '0';
|
||||
iframe.style.bottom = '0';
|
||||
iframe.style.left = '0';
|
||||
iframe.style.width = '100%';
|
||||
iframe.style.height = '100%';
|
||||
|
||||
document.body.prepend(iframe);
|
||||
document.body.style.overflow = 'hidden';
|
||||
});
|
||||
```
|
||||
|
||||
## Resources
|
||||
|
||||
- [Using the Fullscreen API in web browsers](https://hacks.mozilla.org/2012/01/using-the-fullscreen-api-in-web-browsers/)
|
||||
- [MDN - Fullscreen API](https://developer.mozilla.org/en/DOM/Using_full-screen_mode)
|
||||
- [W3C Fullscreen spec](https://fullscreen.spec.whatwg.org/)
|
||||
- [Building an amazing fullscreen mobile experience](https://developers.google.com/web/fundamentals/native-hardware/fullscreen/)
|
||||
Reference in new issue
Block a user