| | |
| | | data.tokenAuth = user.tokenAuth; |
| | | data1.tokenAuth = user.tokenAuth; |
| | | data.data.deptId = selectDeptId; |
| | | url = user.url + "/api-phone/v35/gateway"; |
| | | url = user.url + "/api/phone/v35/gateway"; |
| | | |
| | | getVideoList(); |
| | | |
| | |
| | | success: function(result) { |
| | | if (result.code == "0000") { |
| | | playData = result.data; |
| | | console.log(JSON.stringify(playData)) |
| | | toVideo(playData.playAddr); |
| | | } else { |
| | | // toVideo(playData.playAddr); |
| | | // toVideo("http://player.alicdn.com/video/aliyunmedia.mp4"); |
| | | toVideo('') |
| | | toVideo("http://192.168.1.62:8889/zlm/rtp/gb_play_41010200492000000001_34020000001310000001.flv"); |
| | | |
| | | } else { |
| | | toVideo("http://192.168.1.62:8889/zlm/rtp/gb_play_41010200492000000001_34020000001310000001.flv"); |
| | | // toVideo('') |
| | | mui.alert(result.msg, '提示', ["确定"], function() {}, "div"); |
| | | } |
| | | }, |
| | |
| | | }) |
| | | } |
| | | |
| | | // function toVideo(playAddr) { |
| | | // var html = ''; |
| | | // html += '<video id="mainvideo" src="' + playAddr + |
| | | // '" poster="images/pos1.png" class="video" webkit-playsinline="true" playsinline="true" autoplay controls></video>' |
| | | // $("#toVideo").html(html); |
| | | // } |
| | | function toVideo(playAddr) { |
| | | var html = ''; |
| | | html += '<video src="' + playAddr + |
| | | '" poster="images/pos1.png" class="video" webkit-playsinline="true" playsinline="true" controls></video>' |
| | | $("#toVideo").html(html); |
| | | var html = ""; |
| | | //关闭转圈等待框 |
| | | html = '<easy-player id="easyPlayer" video-url="' + playAddr + |
| | | '" live="true" show-custom-button="true" auto-play="true" muted="true"></easy-player>'; |
| | | $('#toVideo').html(html); |
| | | } |
| | | |
| | | |
| | | mui('.mui-scroll-wrapper').scroll({ |
| | | indicators: false, //是否显示滚动条 |
| | | indicators: true, //是否显示滚动条 |
| | | deceleration: 0.0006, //阻尼系数,系数越小滑动越灵敏 |
| | | bounce: false, //是否启用回弹 |
| | | deceleration: 0.0005 //flick 减速系数,系数越大,滚动速度越慢,滚动距离越小,默认值0.0006 |