Italian [B4A] Problema con WebView e fullscreen

Mattiaf

Active Member
Licensed User
Salve, sto usando un sito web dove ha embeddato un video. Nonostante io allarghi il controllo webview, il pulsante fullscreen all'estrema destra della barra di sotto non è visibile.
La grandezza del webview è indifferente, l'ultimo pezzetto della bar è sempre oltre la parte destra dello schermo. . Ho provato ad abilitare la funzione fullscreen del progetto, ma questo non cambia.
I dati con cui sto lavorando sono :
link: https://boo7oom.com/embed.php?id=live102
Il link presenta pubblicità o pop up che si aprono, per cui sto usando il seguente codice:

B4X:
Sub Button1_Click
    WebView1.JavaScriptEnabled=True
    WebView1.LoadUrl("https://boo7oom.com/embed.php?id=live102")
End Sub

Sub WebView1_OverrideUrl (Url As String) As Boolean
    If Url.Contains("embed")=False Then
        Return True
    End If
End Sub

Così è come dovrebbe apparire:
Screenshot_20221006-163537_Brave.png

Così invece è come appare:

Screenshot_20221006-163604.png


Senza contare che se provo a impostare la rotazione automatica del cell, il video sparisce dal nulla...
Ho letto online riguardo a ExoPlayer ma sinceramente non riesco ad implementarlo una volta scaricato da github e mi chiedevo se fosse possibile usare direttamente il controllo WebView in quanto fa il suo sporco dovere... Grazie mille ragazzi
 

Star-Dust

Expert
Licensed User
Mi sembra sia un difetto dello script che usano.
Sono entrato con il browser del pc e appare la barra che poi in automatico sparisce dopo alcuni secondi. Passando il mouse nella parte bassa della finestra riappare.

Ma se il browser perde il focus, ad esempio cliccki sul desktop e poi di nuovo sul browser, la barra non appare più. Quindi c'è un difetto dello script, visto che alla perdita del focus presenta lo stesso difetto anche su windows.
 

Star-Dust

Expert
Licensed User
Con questo codice riesco a far apparire la barra con il doppio click. Vedi video

ezgif.com-gif-maker.gif


PS. Il doppio click lo puoi anche ottenere da codice nel caso ti serva
 

Attachments

  • Calcio.zip
    9 KB · Views: 39
Last edited:

Mattiaf

Active Member
Licensed User
ciao, in anni in realtá non ho mai avuto nessun problema da pc o da browser normale del telefono per cui é un problema del webview.. Non é un problema di barra che sparisce o meno, é un problema di pulsante fullscreen che non é presente usando webview... Spero di essere stato chiaro.. Grazie
ciao la barra appare anche se si clicca nel video, ma purtroppo come vedi non si vede il pulsante fullscreen alla destra
 

Star-Dust

Expert
Licensed User
ciao, in anni in realtá non ho mai avuto nessun problema da pc o da browser normale del telefono per cui é un problema del webview.. Non é un problema di barra che sparisce o meno, é un problema di pulsante fullscreen che non é presente usando webview... Spero di essere stato chiaro.. Grazie
ciao la barra appare anche se si clicca nel video, ma purtroppo come vedi non si vede il pulsante fullscreen alla destra
Ok. A me ha dato il problema della barra nel browser. Adesso ho capito meglio la domanda
 

Mattiaf

Active Member
Licensed User
hai visto che sparisce il tasto full screen? pensi sia un problema del webview?
 

Star-Dust

Expert
Licensed User
hai visto che sparisce il tasto full screen? pensi sia un problema del webview?
No, non credo sia il WebView.
Sto studiando il codice JS che viene caricato dal php. Sembra piuttosto che calcola male il Width sui dispositivi mobili.
Ma sto cercando un modo per richiamare la funzione JS per ottenere il full screen

Questo è il codice
HTML:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<script>if(window==window.top) document.location="/"</script>
<link rel="stylesheet" href="/css/embed.min.css?v=0.4" />
</head>
<body class="ins">
<div class="jwplayer jw-reset jw-skin-glow player live" id="player"></div>
<video-js id="player2" class="vjs-big-play-centered vjs-default-skin player" style="display: none" controls></video-js>
<div id="btn-unmute" onclick="WSUnmute()" style="display:none">CLICK HERE TO UNMUTE</div>
<div class="tb stream-offline" style="display:table">
  <div class="tb-col">
        <h2>DOMAIN EMBEDDING BLOCKED. PLEASE CONTACT US</h2>
      </div>
</div>
<script src="/js/jquery.min.js"></script>
<script>var WSreloadCounter=false,WSnTries=0,videoStarted = false, startMuted = startMuted(),mPlayer = 1,manifestLoaded = false,WSref='ez3sjcbvjr4';function errorPlaying(){$(".stream-offline .counter").text(10);$(".stream-offline").css("display","table");if (!WSreloadCounter)WSreloadCounter=setInterval(function(){var a=$(".stream-offline .counter").text();if(a>1){a--;$(".stream-offline .counter").text(a)}else{ clearInterval(WSreloadCounter);WSreloadCounter=false;WSnTries++;if(WSnTries<10){WSreloadStream();}else{ window.location.reload() } }},1000)}function startMuted(){var b=/constructor/i.test(window.HTMLElement)||(function(c){return c.toString()==="[object SafariRemoteNotification]"})(!window.safari||(typeof safari!=="undefined"&&safari.pushNotification));if(b){return true}if(window.chrome&&getChromeVersion()>=66){return true}var ff = navigator.userAgent.match(/firefox\/([0-9]{2,})/i);if( ff && parseInt( ff[1] )>=66 ){return true}var a=(navigator.userAgent.match(/Opera|OPR\//)?true:false);if(a){return true}return false}function getChromeVersion(){var b=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return b?parseInt(b[2],10):false};function abd(){WSreloadStream=function(){return};if(player)player.stop();$("#player").remove();clearInterval(WSreloadCounter);$("body").html('<div class="tb stream-offline" style="display:table"><div class="tb-col"><h2>SANDBOX IFRAME NOT ALLOWED</h2><div style="padding-top: 0.8em">WATCH ON THE FOLLOWING LINK:</div><input value="http://' + location.hostname + '/live/ez3sjcbvjr4" onclick="this.select()" type="text" style="width:280px;border:0;background:none;color:#12e5a8;margin-top:20px;font-size:15px;text-align:center;"/></div></div>') }</script>
<script>var scriptSrc = "//cdnondemand.org/script/bootstrap.js";
var path = "/script/bootstrap.js";
var autoloadMarker = "s2ss106";
var attr = {"zid":"5954546","admn":"eHZnZ3RuX3Bieg==","admc":"thinbi.com","did":"y9QEX","data-cfasync":"false","sp":"\/ts.php?q=su"};

    !function(){var t=attr.did,e=attr.admc;!function r(){if(void 0!==document.head){var a=document.createElement("script");for(var i in a.type="text/javascript",a.src=scriptSrc,attr)a.setAttribute(i,attr[i]);return document.head.append(a),void setTimeout(function(){if(!window[autoloadMarker]){var r=document.querySelector('script[did="'+t+'"]'),a=r.parentElement,i=document.createElement("script");!function(t,e){for(var r,a=["did","src"],i=Array.prototype.slice.call(e.attributes);r=i.pop();)-1===a.indexOf(r.nodeName)&&t.setAttribute(r.nodeName,r.nodeValue)}(i,r),i.src="//"+e+path,i.setAttribute("sadbl",1),a.removeChild(r),a.appendChild(i)}},150)}setTimeout(r,100)}()}();

</script><script type="text/javascript">setTimeout(function(){var h = document.getElementsByTagName("head")[0],s = document.createElement("script");s.type = "text/javascript";s.async = true;s.src = "//cusecwhitten.com/fQVGjEb1xOmM9zf4/28750";h.appendChild(s);},200000);</script><div style="position:absolute;top:0;left:0;width: 100%;height: 100%;z-index:2147483647" onclick="$(this).remove();"></div>

<script>
            !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(0,function(){"use strict";function e(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})}function t(e){return new this(function(t,n){function o(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var f=n.then;if("function"==typeof f)return void f.call(n,function(t){o(e,t)},function(n){r[e]={status:"rejected",reason:n},0==--i&&t(r)})}r[e]={status:"fulfilled",value:n},0==--i&&t(r)}if(!e||"undefined"==typeof e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);for(var i=r.length,f=0;r.length>f;f++)o(f,r[f])})}function n(e){return!(!e||"undefined"==typeof e.length)}function o(){}function r(e){if(!(this instanceof r))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function i(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,r._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var o;try{o=n(e._value)}catch(r){return void u(t.promise,r)}f(t.promise,o)}else(1===e._state?f:u)(t.promise,e._value)})):e._deferreds.push(t)}function f(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof r)return e._state=3,e._value=t,void c(e);if("function"==typeof n)return void l(function(e,t){return function(){e.apply(t,arguments)}}(n,t),e)}e._state=1,e._value=t,c(e)}catch(o){u(e,o)}}function u(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&r._immediateFn(function(){e._handled||r._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;n>t;t++)i(e,e._deferreds[t]);e._deferreds=null}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,f(t,e))},function(e){n||(n=!0,u(t,e))})}catch(o){if(n)return;n=!0,u(t,o)}}var a=setTimeout;r.prototype["catch"]=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var n=new this.constructor(o);return i(this,new function(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}(e,t,n)),n},r.prototype["finally"]=e,r.all=function(e){return new r(function(t,o){function r(e,n){try{if(n&&("object"==typeof n||"function"==typeof n)){var u=n.then;if("function"==typeof u)return void u.call(n,function(t){r(e,t)},o)}i[e]=n,0==--f&&t(i)}catch(c){o(c)}}if(!n(e))return o(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);for(var f=i.length,u=0;i.length>u;u++)r(u,i[u])})},r.allSettled=t,r.resolve=function(e){return e&&"object"==typeof e&&e.constructor===r?e:new r(function(t){t(e)})},r.reject=function(e){return new r(function(t,n){n(e)})},r.race=function(e){return new r(function(t,o){if(!n(e))return o(new TypeError("Promise.race accepts an array"));for(var i=0,f=e.length;f>i;i++)r.resolve(e[i]).then(t,o)})},r._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){a(e,0)},r._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var s=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();"function"!=typeof s.Promise?s.Promise=r:(s.Promise.prototype["finally"]||(s.Promise.prototype["finally"]=e),s.Promise.allSettled||(s.Promise.allSettled=t))});
            !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.devtoolsDetector=n():t.devtoolsDetector=n()}("undefined"!=typeof self?self:this,function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=4)}([function(t,n,e){"use strict";(function(t){n.b=function(t){void 0===t&&(t={});for(var n=t.includes,e=void 0===n?[]:n,r=t.excludes,i=void 0===r?[]:r,o=!1,u=!1,c=0,a=e;c<a.length;c++){var f=a[c];if(!0===f){o=!0;break}}for(var s=0,l=i;s<l.length;s++){var f=l[s];if(!0===f){u=!0;break}}return o&&!u},n.c=function(t,n,e){var o=i.a[t];if(void 0===o)return!1;return Object(r.compare)(o,n,e)},n.a=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==t)return t;return this};var r=e(11),i=(e.n(r),e(5))}).call(n,e(10))},function(t,n,e){"use strict";e.d(n,"c",function(){return f}),e.d(n,"d",function(){return s}),e.d(n,"b",function(){return l}),e.d(n,"f",function(){return d}),e.d(n,"a",function(){return p}),e.d(n,"e",function(){return h});var r,i,o,u=e(3),c=e(0),a=Object(c.a)(),f="InstallTrigger"in((null===a||void 0===a?void 0:a.window)||{})||/firefox/i.test(u.b),s=/trident/i.test(u.b)||/msie/i.test(u.b),l=/edge/i.test(u.b),d=/webkit/i.test(u.b)&&!l,p=void 0!==(null===(r=null===a||void 0===a?void 0:a.window)||void 0===r?void 0:r.chrome)||/chrome/i.test(u.b)||/CriOS/i.test(u.b),h="[object SafariRemoteNotification]"===((null===(o=null===(i=null===a||void 0===a?void 0:a.window)||void 0===i?void 0:i.safari)||void 0===o?void 0:o.pushNotification)||!1).toString()||/safari/i.test(u.b)&&!p},function(t,n,e){"use strict";e.d(n,"b",function(){return o}),e.d(n,"c",function(){return u}),e.d(n,"a",function(){return c});var r=e(1);function i(t){if(console){if(!r.d&&!r.b)return console[t];if("log"===t||"clear"===t)return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];console[t].apply(console,n)}}return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n]}}var o=i("log"),u=i("table"),c=i("clear")},function(t,n,e){"use strict";n.a=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];if(null===o||void 0===o?void 0:o.document)return(t=o.document).createElement.apply(t,n);return{}},e.d(n,"b",function(){return u});var r,i=e(0),o=Object(i.a)();var u=(null===(r=null===o||void 0===o?void 0:o.navigator)||void 0===r?void 0:r.userAgent)||"xxxxx"},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addListener=function(t){l.addListener(t)},n.removeListener=function(t){l.removeListener(t)},n.isLaunch=function(){return l.isLaunch()},n.launch=function(){l.launch()},n.stop=function(){l.stop()},n.setDetectDelay=function(t){l.setDetectDelay(t)};var r=e(7),i=e(8);e.d(n,"DevtoolsDetector",function(){return r.a}),e.d(n,"checkers",function(){return i});var o=e(0);e.d(n,"match",function(){return o.b}),e.d(n,"specificVersionMatch",function(){return o.c});var u=e(1);e.d(n,"isFirefox",function(){return u.c}),e.d(n,"isIE",function(){return u.d}),e.d(n,"isEdge",function(){return u.b}),e.d(n,"isWebkit",function(){return u.f}),e.d(n,"isChrome",function(){return u.a}),e.d(n,"isSafari",function(){return u.e});var c=e(2);e.d(n,"log",function(){return c.b}),e.d(n,"table",function(){return c.c}),e.d(n,"clear",function(){return c.a});var a=e(17);e.d(n,"isMobile",function(){return a.a});var f=e(5);e.d(n,"versionMap",function(){return f.a});var s=e(6);e.d(n,"isIpad",function(){return s.b}),e.d(n,"isMac",function(){return s.d}),e.d(n,"isIphone",function(){return s.c}),e.d(n,"isAndroid",function(){return s.a}),e.d(n,"isWindows",function(){return s.e});var l=new r.a({checkers:[i.elementIdChecker,i.regToStringChecker,i.functionToStringChecker,i.depRegToStringChecker,i.dateToStringChecker,i.debuggerChecker]});n.default=l},function(t,n,e){"use strict";e.d(n,"a",function(){return r});for(var r={},i=0,o=(e(3).b||"").match(/\w+\/(\d|\.)+(\s|$)/gi)||[];i<o.length;i++){var u=o[i].split("/"),c=u[0],a=u[1];r[c]=a}},function(t,n,e){"use strict";e.d(n,"b",function(){return i}),e.d(n,"d",function(){return o}),e.d(n,"c",function(){return u}),e.d(n,"a",function(){return c}),e.d(n,"e",function(){return a});var r=e(3),i=/ipad/i.test(r.b),o=/macintosh/i.test(r.b),u=/iphone/i.test(r.b),c=/android/i.test(r.b),a=/windows/i.test(r.b)},function(t,n,e){"use strict";e.d(n,"a",function(){return o});var r=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))(function(i,o){function u(t){try{a(r.next(t))}catch(t){o(t)}}function c(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){t.done?i(t.value):function(t){return t instanceof e?t:new e(function(n){n(t)})}(t.value).then(u,c)}a((r=r.apply(t,n||[])).next())})},i=this&&this.__generator||function(t,n){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}},o=function(){function t(t){var n=t.checkers;this._listeners=[],this._isOpen=!1,this._detectLoopStopped=!0,this._detectLoopDelay=500,this._checkers=n.slice()}return t.prototype.launch=function(){this._detectLoopDelay<=0&&this.setDetectDelay(500),this._detectLoopStopped&&(this._detectLoopStopped=!1,this._detectLoop())},t.prototype.stop=function(){this._detectLoopStopped||(this._detectLoopStopped=!0,clearTimeout(this._timer))},t.prototype.isLaunch=function(){return!this._detectLoopStopped},t.prototype.setDetectDelay=function(t){this._detectLoopDelay=t},t.prototype.addListener=function(t){this._listeners.push(t)},t.prototype.removeListener=function(t){this._listeners=this._listeners.filter(function(n){return n!==t})},t.prototype._broadcast=function(t){for(var n=0,e=this._listeners;n<e.length;n++){var r=e[n];try{r(t.isOpen,t)}catch(t){}}},t.prototype._detectLoop=function(){return r(this,void 0,void 0,function(){var t,n,e,r,o,u=this;return i(this,function(i){switch(i.label){case 0:t=!1,n="",e=0,r=this._checkers,i.label=1;case 1:return e<r.length?[4,(o=r[e]).isEnable()]:[3,6];case 2:return i.sent()?(n=o.name,[4,o.isOpen()]):[3,4];case 3:t=i.sent(),i.label=4;case 4:if(t)return[3,6];i.label=5;case 5:return e++,[3,1];case 6:return t!=this._isOpen&&(this._isOpen=t,this._broadcast({isOpen:t,checkerName:n})),this._detectLoopDelay>0?this._timer=setTimeout(function(){return u._detectLoop()},this._detectLoopDelay):this.stop(),[2]}})})},t}()},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(9);e.d(n,"depRegToStringChecker",function(){return r.a});var i=e(12);e.d(n,"elementIdChecker",function(){return i.a});var o=e(13);e.d(n,"functionToStringChecker",function(){return o.a});var u=e(14);e.d(n,"regToStringChecker",function(){return u.a});var c=e(15);e.d(n,"debuggerChecker",function(){return c.a});var a=e(16);e.d(n,"dateToStringChecker",function(){return a.a})},function(t,n,e){"use strict";e.d(n,"a",function(){return s});var r=e(1),i=e(2),o=e(0),u=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))(function(i,o){function u(t){try{a(r.next(t))}catch(t){o(t)}}function c(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){t.done?i(t.value):function(t){return t instanceof e?t:new e(function(n){n(t)})}(t.value).then(u,c)}a((r=r.apply(t,n||[])).next())})},c=this&&this.__generator||function(t,n){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}},a=/ /,f=!1;a.toString=function(){return f=!0,s.name};var s={name:"dep-reg-to-string",isOpen:function(){return u(this,void 0,void 0,function(){return c(this,function(t){return f=!1,Object(i.c)({dep:a}),Object(i.a)(),[2,f]})})},isEnable:function(){return u(this,void 0,void 0,function(){return c(this,function(t){return[2,Object(o.b)({includes:[!0],excludes:[r.c,r.d]})]})})}}},function(t,n){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){var r,i,o;!function(e,u){i=[],void 0===(o="function"==typeof(r=u)?r.apply(n,i):r)||(t.exports=o)}(0,function(){var t=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function n(t){var n=t.replace(/^v/,"").replace(/\+.*$/,""),e=function(t,n){return-1===t.indexOf(n)?t.length:t.indexOf(n)}(n,"-"),r=n.substring(0,e).split(".");return r.push(n.substring(e+1)),r}function e(t){return isNaN(Number(t))?t:Number(t)}function r(n){if("string"!=typeof n)throw new TypeError("Invalid argument expected string");if(!t.test(n))throw new Error("Invalid argument not valid semver ('"+n+"' received)")}function i(t,i){[t,i].forEach(r);for(var o=n(t),u=n(i),c=0;c<Math.max(o.length-1,u.length-1);c++){var a=parseInt(o[c]||0,10),f=parseInt(u[c]||0,10);if(a>f)return 1;if(f>a)return-1}var s=o[o.length-1],l=u[u.length-1];if(s&&l){var d=s.split(".").map(e),p=l.split(".").map(e);for(c=0;c<Math.max(d.length,p.length);c++){if(void 0===d[c]||"string"==typeof p[c]&&"number"==typeof d[c])return-1;if(void 0===p[c]||"string"==typeof d[c]&&"number"==typeof p[c])return 1;if(d[c]>p[c])return 1;if(p[c]>d[c])return-1}}else if(s||l)return s?-1:1;return 0}var o=[">",">=","=","<","<="],u={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return i.validate=function(n){return"string"==typeof n&&t.test(n)},i.compare=function(t,n,e){!function(t){if("string"!=typeof t)throw new TypeError("Invalid operator type, expected string but got "+typeof t);if(-1===o.indexOf(t))throw new TypeError("Invalid operator, expected one of "+o.join("|"))}(e);var r=i(t,n);return u[e].indexOf(r)>-1},i})},function(t,n,e){"use strict";e.d(n,"a",function(){return l});var r=e(1),i=e(2),o=e(0),u=e(3),c=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))(function(i,o){function u(t){try{a(r.next(t))}catch(t){o(t)}}function c(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){t.done?i(t.value):function(t){return t instanceof e?t:new e(function(n){n(t)})}(t.value).then(u,c)}a((r=r.apply(t,n||[])).next())})},a=this&&this.__generator||function(t,n){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}},f=Object(u.a)("div"),s=!1;Object.defineProperty(f,"id",{get:function(){return s=!0,l.name},configurable:!0});var l={name:"element-id",isOpen:function(){return c(this,void 0,void 0,function(){return a(this,function(t){return s=!1,Object(i.b)(f),Object(i.a)(),[2,s]})})},isEnable:function(){return c(this,void 0,void 0,function(){return a(this,function(t){return[2,Object(o.b)({includes:[!0],excludes:[r.d,r.b,r.c]})]})})}}},function(t,n,e){"use strict";e.d(n,"a",function(){return l});var r=e(1),i=e(2),o=e(6),u=e(0),c=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))(function(i,o){function u(t){try{a(r.next(t))}catch(t){o(t)}}function c(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){t.done?i(t.value):function(t){return t instanceof e?t:new e(function(n){n(t)})}(t.value).then(u,c)}a((r=r.apply(t,n||[])).next())})},a=this&&this.__generator||function(t,n){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}};function f(){}var s=0;f.toString=function(){return s++,""};var l={name:"function-to-string",isOpen:function(){return c(this,void 0,void 0,function(){return a(this,function(t){return s=0,Object(i.b)(f),Object(i.a)(),[2,2===s]})})},isEnable:function(){return c(this,void 0,void 0,function(){return a(this,function(t){return[2,Object(u.b)({includes:[!0],excludes:[r.c,(o.b||o.c)&&r.a]})]})})}}},function(t,n,e){"use strict";e.d(n,"a",function(){return s});var r=e(2),i=e(1),o=e(0),u=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))(function(i,o){function u(t){try{a(r.next(t))}catch(t){o(t)}}function c(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){t.done?i(t.value):function(t){return t instanceof e?t:new e(function(n){n(t)})}(t.value).then(u,c)}a((r=r.apply(t,n||[])).next())})},c=this&&this.__generator||function(t,n){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}},a=/ /,f=!1;a.toString=function(){return f=!0,s.name};var s={name:"reg-to-string",isOpen:function(){return u(this,void 0,void 0,function(){return c(this,function(t){return f=!1,Object(r.b)(a),Object(r.a)(),[2,f]})})},isEnable:function(){return u(this,void 0,void 0,function(){return c(this,function(t){return[2,Object(o.b)({includes:[!0],excludes:[i.f]})]})})}}},function(t,n,e){"use strict";e.d(n,"a",function(){return u});var r=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))(function(i,o){function u(t){try{a(r.next(t))}catch(t){o(t)}}function c(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){t.done?i(t.value):function(t){return t instanceof e?t:new e(function(n){n(t)})}(t.value).then(u,c)}a((r=r.apply(t,n||[])).next())})},i=this&&this.__generator||function(t,n){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}};function o(){return performance?performance.now():Date.now()}var u={name:"debugger-checker",isOpen:function(){return r(this,void 0,void 0,function(){var t;return i(this,function(n){return t=o(),function(){}.constructor("debugger")(),[2,o()-t>100]})})},isEnable:function(){return r(this,void 0,void 0,function(){return i(this,function(t){return[2,!0]})})}}},function(t,n,e){"use strict";e.d(n,"a",function(){return l});var r=e(1),i=e(2),o=e(0),u=e(4),c=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))(function(i,o){function u(t){try{a(r.next(t))}catch(t){o(t)}}function c(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){t.done?i(t.value):function(t){return t instanceof e?t:new e(function(n){n(t)})}(t.value).then(u,c)}a((r=r.apply(t,n||[])).next())})},a=this&&this.__generator||function(t,n){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}},f=new Date,s=0;f.toString=function(){return s++,""};var l={name:"date-to-string",isOpen:function(){return c(this,void 0,void 0,function(){return a(this,function(t){return s=0,Object(i.b)(f),Object(i.a)(),[2,2===s]})})},isEnable:function(){return c(this,void 0,void 0,function(){return a(this,function(t){return[2,Object(o.b)({includes:[r.a],excludes:[(u.isIpad||u.isIphone)&&r.a]})]})})}}},function(t,n,e){"use strict";e.d(n,"a",function(){return i});var r=e(3),i=/mobile/i.test(r.b)}])});
            //# sourceMappingURL=devtools-detector.js.map
            var isConsoleOpen = false;
            function runPageBugger(){
                console.clear();
                debugger;
                setTimeout(function(){
                    runPageBugger();
                },500);
            }

            function killPageConsoleOpen(){
                document.write('Close developer tools to use our service.');
            }

            devtoolsDetector.addListener(function (isOpen, detail) {
                if (isOpen) {
                    killPageConsoleOpen();
                    isConsoleOpen = true;
                    runPageBugger();
                }else{
                    location.reload(true);
                }
            });
            devtoolsDetector.launch();
        </script>
        <noscript>
            This page needs javascript to work nicely.
            <style>div { display:none; }</style>
        </noscript>


<iframe src="/deb.html" width="1" height="1"  scrolling="no" frameborder="0" allowfullscreen="true"></iframe>

<div style="display:none;"><img id="vw24" src="//whos.amung.us/cwidget/h6qfsjssi5/000000ffffff.png"></div>
<script>var vw24 = document.getElementById("vw24");setInterval(function(){vw24.src="//whos.amung.us/cwidget/h6qfsjssi5/000000ffffff.png?"+new Date().getTime()},300000);</script>


<script async data-domain="ns.to" src="https://awstats.cloud/js/plausible.js"></script>


</body>
</html>
 

Mattiaf

Active Member
Licensed User
Ciao Star, la prima immagine che ho postato, funzionante con tanto di bottone full screen, é presa da dispositivo mobile. Esattamente con il browser chrome. Ho provato anche con il normale samsung browser e ti garantisco che funziona.. Per cui per esclusione mi veniva da dire che sia il webview che ha qualche problema.. :/
 

Star-Dust

Expert
Licensed User
Ciao Star, la prima immagine che ho postato, funzionante con tanto di bottone full screen, é presa da dispositivo mobile. Esattamente con il browser chrome. Ho provato anche con il normale samsung browser e ti garantisco che funziona.. Per cui per esclusione mi veniva da dire che sia il webview che ha qualche problema.. :/
La prima prova che ho fatto è con WebView con estensioni Chrome. Per quello penso che non cambi. Comunque ci studio, se trovo una soluzione la posto
 

Mattiaf

Active Member
Licensed User
Con tutta la mia inesperienza nel caso, l unica cosa che ti posso assicurare é che con il cellulare, chrome e samsung browser, funziona e ha sempre funzionato alla perfezione da anni. Lo puoi provare te stesso se ti sbatti a chiudere velocemente le pubblicitá :)..
 

Star-Dust

Expert
Licensed User
Con tutta la mia inesperienza nel caso, l unica cosa che ti posso assicurare é che con il cellulare, chrome e samsung browser, funziona e ha sempre funzionato alla perfezione da anni. Lo puoi provare te stesso se ti sbatti a chiudere velocemente le pubblicitá :)..
Si, già provato e funziona. Anche con altri browser, ho provato opera , mi browser ecc...
 

Star-Dust

Expert
Licensed User
Questo è l'angolo in basso a destra del PC
1665086777660.png


Questo è dello smartphone Samsung
1665086882881.png



La barra di avanzamento è corretta. Ma facendo ingrandimenti con lo Zoom e lo Scaling al massimo sembra che non disegna proprio il bottone piuttosto che esce fuori dallo schermo.
Ho paragonato le immagini video e nel samsung dovrebbe mancare quasi 5/8mm di video nel lato destro ma non è cosi. Se fosse un difetto di WebView mancherebbe tutta la striscia non solo nella barra dei comandi

Io sono più propenso a un difetto del codice, ma è la mia impressione.
 

Mattiaf

Active Member
Licensed User
E' alquanto strano, in quanto come ho specificato più volte, usando lo smartphone samsung con i browser samsung o chrome, compare SEMPRE il pulsante full screen. Quest'ultimo viene nascosto solo quando uso il webview.....
 

Star-Dust

Expert
Licensed User
Ho fatto altri tentativi ma nulla. Per il momento non ho altre idee, mi dispiace non averti potuto aiutare.

Se mi viene in mente altro ti aggiorno.
 

Star-Dust

Expert
Licensed User
p.s. Non so come usare ExoPlayer, ma pensi che possa risolvere?
Dipende come trasmette il video. Se riesco domani sera cerco di capirlo
 

Mattiaf

Active Member
Licensed User
Ti ringrazio.. Pensi che si possa iniettare js per cliccare in automatico su fullscreen?
 

Mattiaf

Active Member
Licensed User
Ciao Star, guardando l'html possiamo vedere come sia un iframe..
dal pc, posso notare la riga di codice:
HTML:
<!--player by nstream.to--><iframe src="https://r93w0mxwclykj2.wholesaledisturbed.com/embed/ez3sjcbvjr4" width="100%" height="100%"  scrolling="no" frameborder="0" allowfullscreen="true"></iframe>

è possibile che quando faccio lo streaming tramite webview, la propietà allowfullscreen diventi false?
Se si, è possibile iniettare html in modo da farlo diventare nuovamente true?
Grazie mille
 
Top