old mode 100644
new mode 100755
 |  |  | 
 |  |  | <template> | 
 |  |  | <div id="devicePlayer" v-loading="isLoging"> | 
 |  |  |  | 
 |  |  |     <el-dialog title="视频播放" top="0" :close-on-click-modal="false" :visible.sync="showVideoDialog" @close="close()"> | 
 |  |  |     <el-dialog title="视频播放" top="0" :close-on-click-modal="false" :visible.sync="showVideoDialog" @close="close()" v-if="showVideoDialog"> | 
 |  |  |       <div style="width: 100%; height: 100%"> | 
 |  |  |         <el-tabs type="card" :stretch="true" v-model="activePlayer" @tab-click="changePlayer" v-if="Object.keys(this.player).length > 1"> | 
 |  |  | <!--          <el-tab-pane label="LivePlayer" name="livePlayer">--> | 
 |  |  | 
 |  |  |             <rtc-player v-if="activePlayer === 'webRTC'" ref="webRTC" :visible.sync="showVideoDialog" :videoUrl="videoUrl" :error="videoError" :message="videoError" height="100px" :hasAudio="hasAudio" fluent autoplay live ></rtc-player> | 
 |  |  |           </el-tab-pane> | 
 |  |  |           <el-tab-pane label="h265web">h265web敬请期待</el-tab-pane> | 
 |  |  |           <el-tab-pane label="wsPlayer">wsPlayer 敬请期待</el-tab-pane> | 
 |  |  |         </el-tabs> | 
 |  |  |         <jessibucaPlayer v-if="Object.keys(this.player).length == 1 && this.player.jessibuca" ref="jessibuca" :visible.sync="showVideoDialog" :videoUrl="videoUrl" :error="videoError" :message="videoError" height="100px" :hasAudio="hasAudio" fluent autoplay live ></jessibucaPlayer> | 
 |  |  |         <rtc-player v-if="Object.keys(this.player).length == 1 && this.player.webRTC" ref="jessibuca" :visible.sync="showVideoDialog" :videoUrl="videoUrl" :error="videoError" :message="videoError" height="100px" :hasAudio="hasAudio" fluent autoplay live ></rtc-player> | 
 |  |  | 
 |  |  |             if (tab.name === "codec") { | 
 |  |  |                 this.$axios({ | 
 |  |  |                     method: 'get', | 
 |  |  |                     url: './zlm/' +this.mediaServerId+ '/index/api/getMediaInfo?vhost=__defaultVhost__&schema=rtsp&app='+ this.app +'&stream='+ this.streamId | 
 |  |  |                     url: '/zlm/' +this.mediaServerId+ '/index/api/getMediaInfo?vhost=__defaultVhost__&schema=rtsp&app='+ this.app +'&stream='+ this.streamId | 
 |  |  |                 }).then(function (res) { | 
 |  |  |                     that.tracksLoading = false; | 
 |  |  |                     if (res.data.code == 0 && res.data.tracks) { | 
 |  |  | 
 |  |  |             this.$refs[this.activePlayer].pause() | 
 |  |  |             that.$axios({ | 
 |  |  |                 method: 'post', | 
 |  |  |                 url: './api/play/convert/' + that.streamId | 
 |  |  |                 url: '/api/play/convert/' + that.streamId | 
 |  |  |                 }).then(function (res) { | 
 |  |  |                     if (res.data.code === 0) { | 
 |  |  |                         that.convertKey = res.data.key; | 
 |  |  | 
 |  |  |             that.$refs.videoPlayer.pause() | 
 |  |  |             this.$axios({ | 
 |  |  |                 method: 'post', | 
 |  |  |                 url: './api/play/convertStop/' + this.convertKey | 
 |  |  |                 url: '/api/play/convertStop/' + this.convertKey | 
 |  |  |               }).then(function (res) { | 
 |  |  |                 if (res.data.code == 0) { | 
 |  |  |                   console.log(res.data.msg) | 
 |  |  | 
 |  |  |         playFromStreamInfo: function (realHasAudio, streamInfo) { | 
 |  |  |           this.showVideoDialog = true; | 
 |  |  |           this.hasaudio = realHasAudio && this.hasaudio; | 
 |  |  |           this.$refs[this.activePlayer].play(this.getUrlByStreamInfo(streamInfo)) | 
 |  |  |           if (this.$refs[this.activePlayer]) { | 
 |  |  |             this.$refs[this.activePlayer].play(this.getUrlByStreamInfo(streamInfo)) | 
 |  |  |           }else { | 
 |  |  |             this.$nextTick(() => { | 
 |  |  |               this.$refs[this.activePlayer].play(this.getUrlByStreamInfo(streamInfo)) | 
 |  |  |             }); | 
 |  |  |           } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         }, | 
 |  |  |         close: function () { | 
 |  |  |             console.log('关闭视频'); | 
 |  |  | 
 |  |  |             let that = this; | 
 |  |  |             this.$axios({ | 
 |  |  |                 method: 'post', | 
 |  |  |                 url: './api/ptz/control/' + this.deviceId + '/' + this.channelId + '?command=' + command + '&horizonSpeed=' + this.controSpeed + '&verticalSpeed=' + this.controSpeed + '&zoomSpeed=' + this.controSpeed | 
 |  |  |                 url: '/api/ptz/control/' + this.deviceId + '/' + this.channelId + '?command=' + command + '&horizonSpeed=' + this.controSpeed + '&verticalSpeed=' + this.controSpeed + '&zoomSpeed=' + this.controSpeed | 
 |  |  |             }).then(function (res) {}); | 
 |  |  |         }, | 
 |  |  |         //////////////////////播放器事件处理////////////////////////// | 
 |  |  | 
 |  |  |             let that = this; | 
 |  |  |             this.$axios({ | 
 |  |  |                 method: 'post', | 
 |  |  |                 url: './api/ptz/front_end_command/' + this.deviceId + '/' + this.channelId + '?cmdCode=' + cmdCode + '¶meter1=0¶meter2=' + presetPos + '&combindCode2=0' | 
 |  |  |                 url: '/api/ptz/front_end_command/' + this.deviceId + '/' + this.channelId + '?cmdCode=' + cmdCode + '¶meter1=0¶meter2=' + presetPos + '&combindCode2=0' | 
 |  |  |             }).then(function (res) {}); | 
 |  |  |         }, | 
 |  |  |         setSpeedOrTime: function (cmdCode, groupNum, parameter) { | 
 |  |  | 
 |  |  |             console.log('前端控制:0x' + cmdCode.toString(16) + ' 0x' + groupNum.toString(16) + ' 0x' + parameter2.toString(16) + ' 0x' + combindCode2.toString(16)); | 
 |  |  |             this.$axios({ | 
 |  |  |                 method: 'post', | 
 |  |  |                 url: './api/ptz/front_end_command/' + this.deviceId + '/' + this.channelId + '?cmdCode=' + cmdCode + '¶meter1=' + groupNum + '¶meter2=' + parameter2 + '&combindCode2=' + combindCode2 | 
 |  |  |                 url: '/api/ptz/front_end_command/' + this.deviceId + '/' + this.channelId + '?cmdCode=' + cmdCode + '¶meter1=' + groupNum + '¶meter2=' + parameter2 + '&combindCode2=' + combindCode2 | 
 |  |  |             }).then(function (res) {}); | 
 |  |  |         }, | 
 |  |  |         setCommand: function (cmdCode, groupNum, parameter) { | 
 |  |  | 
 |  |  |             console.log('前端控制:0x' + cmdCode.toString(16) + ' 0x' + groupNum.toString(16) + ' 0x' + parameter.toString(16) + ' 0x0'); | 
 |  |  |             this.$axios({ | 
 |  |  |                 method: 'post', | 
 |  |  |                 url: './api/ptz/front_end_command/' + this.deviceId + '/' + this.channelId + '?cmdCode=' + cmdCode + '¶meter1=' + groupNum + '¶meter2=' + parameter + '&combindCode2=0' | 
 |  |  |                 url: '/api/ptz/front_end_command/' + this.deviceId + '/' + this.channelId + '?cmdCode=' + cmdCode + '¶meter1=' + groupNum + '¶meter2=' + parameter + '&combindCode2=0' | 
 |  |  |             }).then(function (res) {}); | 
 |  |  |         }, | 
 |  |  |         copyUrl: function (dropdownItem){ |