Customize the video control bar, the mobile side is feasible

Source: Internet
Author: User

<! 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.