<! DOCTYPE html>
<! DOCTYPE html>
<body>});//Returns the Htmlfunction GetTime (time) {//time to be shown) {//) to be converted, to obtain a seconds var minute = Math.floor (TIME/60); var second = Math.floor ( TIME%60);//Front 0minute = minute<10? " 0 "+minute:minute;second = second<10?" 0 "+second:second;return minute+ ': ' +second;} function Toggleclass (ele,a,b) {if (Ele.classList.contains (a)) {ele.classList.remove (a); Ele.classList.add (b);} else {ele.classList.add (a); Ele.classList.remove (b);}} function keepAlive () {Mui.ajax (' Plus.storage.getItem (' videopath ') + '/keepalive.php ', {data: ' {"SessionID": "' + SessionID + ' "} ', type: ' Post ',//http request type timeout:100000,//timeout set to 10 seconds, DataType:" JSON ", headers: {},success:function ( Data) {
},error:function (XHR, type, Errorthrown) {mui.toast ("Network interrupted, temporarily unable to play");});} function Changege () {Mui.ajax (' Plus.storage.getItem (' videopath ') + '/videostart.php ', {data: ' {"Hls-time": "3", " Szfs-addr ":" ' + DevIP1 + ' "," Bytimgformat ":" 0 "," Bytnettype ":" 3 "," Szfs-user ":" ' + UserName1 + ' "," szfs-pwd ":" ' + Pwd1 + ' ", "NManagePort1": "' + plus.storage.getItem (' nManagePort1 ') + '", "Bytchannel": "' + DevNum1 + '", "Lvideopri": "1", " NManagePort2 ":" 3002 "," Bytservertype ":" ' + DevType1 + ' "," Nfs-port ":" ' + DevPort1 + ' "," szManageIP1 ":" ' + Plus.storage.getItem (' szManageIP1 ') + ' "," Hls-list-size ":" 5 "," szManageIP2 ":" 127.0.0.1 "," hls-resolution ": ' + document.getElementById (' Changege '). value+ '} ', type: ' Post ',//http request type timeout:100000,//timeout time set to 10 seconds; DataType: "JSON ", headers: {},success:function (data1) {sessionid = Data1.sessionid; Media = document.getElementById ("Video2"); MEDIA.SRC = Plus.storage.getItem (' videopath ') + data1.videosrc;},error:function (XHR, type, Errorthrown) {}});}
Mui.back = function () {var btn = [OK], cancel];mui.confirm (' Confirm exit current video playback? ', ' whether to exit ', BTN, function (e) {if (E.index = = 0) {Mui.ajax (Plus.storage.getItem (' videopath ') + '/videostop.php ', {data: ' {"s Essionid ":" ' + SessionID + ' "} ', type: ' Post ',//http request type timeout:100000,//timeout time set to 10 seconds; DataType:" JSON ", headers: {}, Success:function (data) {
},error:function (XHR, type, Errorthrown) {}}); Mui.currentWebview.close ();}}); </script></body>
Customize the video control bar, the mobile side is feasible