| | |
| | | var videoList = null; |
| | | var playData = null; |
| | | var data = { |
| | | "interfaceId": "5604", |
| | | "interfaceId": "5103", |
| | | "tokenAuth": "", |
| | | "outId": "56041", |
| | | "outId": "10103", |
| | | "reqDateTime": new Date(), |
| | | "data": { |
| | | "deptId": "" |
| | | } |
| | | }; |
| | | var data1 = { |
| | | "interfaceId": "5605", |
| | | "interfaceId": "5104", |
| | | "tokenAuth": "", |
| | | "outId": "56051", |
| | | "outId": "10104", |
| | | "reqDateTime": new Date(), |
| | | "data": { |
| | | "id": "", |
| | |
| | | var selectDeptId = JSON.parse(localStorage.getItem('selectDeptId')); |
| | | data.tokenAuth = user.tokenAuth; |
| | | data1.tokenAuth = user.tokenAuth; |
| | | data.data.deptId = selectDeptId; |
| | | url = user.url + "/api-phone/v35/gateway"; |
| | | deptId = selectDeptId; |
| | | if(deptId == null){ |
| | | deptId = user.deptId |
| | | } |
| | | data.data.deptId = deptId; |
| | | |
| | | url = user.url + "/api/phone/v1/gateway"; |
| | | |
| | | getVideoList(); |
| | | |
| | |
| | | if (result.code == "0000") { |
| | | playData = result.data; |
| | | console.log(JSON.stringify(playData)) |
| | | toVideo(playData.playAddr); |
| | | toVideo(playData.playUrl); |
| | | } else { |
| | | // toVideo("http://player.alicdn.com/video/aliyunmedia.mp4"); |
| | | toVideo('') |
| | |
| | | |
| | | function toVideo(playAddr) { |
| | | var html = ''; |
| | | html += '<video src="' + playAddr + |
| | | '" poster="images/pos1.png" class="video" webkit-playsinline="true" playsinline="true" controls></video>' |
| | | html += '<iframe src="' + playAddr + |
| | | '" poster="images/pos1.png" class="video" webkit-playsinline="true" playsinline="true" controls></iframe>' |
| | | $("#toVideo").html(html); |
| | | } |
| | | |