1 #118
@ -81,7 +81,8 @@
 | 
			
		||||
                <div class="left-view" v-if="deviceName != 30">
 | 
			
		||||
                    <div ref="monitor" class="monitor" id="monitor">
 | 
			
		||||
                        <!-- <video ref="videoPlayer" class="video-js" id="video-js"></video> -->
 | 
			
		||||
                        <div ref="videoPlayer" class="video-js" id="video-js"></div>
 | 
			
		||||
                        <img v-if="imgUrl" style="width: 100%;height: 100%;" :src="imgUrl" alt="">
 | 
			
		||||
                        <div v-else ref="videoPlayer" class="video-js" id="video-js"></div>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class="right" id="realTime-line"></div>
 | 
			
		||||
@ -484,6 +485,7 @@ export default {
 | 
			
		||||
            indexs: 1,
 | 
			
		||||
            player: null,
 | 
			
		||||
            url: '',
 | 
			
		||||
            imgUrl:'',
 | 
			
		||||
            timer: null,
 | 
			
		||||
            deviceName: 1,
 | 
			
		||||
            deviceState: 1,
 | 
			
		||||
@ -1004,6 +1006,8 @@ export default {
 | 
			
		||||
                        if (res.data.code == 200) {
 | 
			
		||||
                            this.url = res.data.data.ezopen
 | 
			
		||||
                            this.createVideoNew(res.data.data.accesstoken)
 | 
			
		||||
                        }else{
 | 
			
		||||
                            this.imgUrl=nowDevice.hls
 | 
			
		||||
                        }
 | 
			
		||||
                    })
 | 
			
		||||
                }
 | 
			
		||||
@ -1118,6 +1122,8 @@ export default {
 | 
			
		||||
                        if (res.data.code == 200) {
 | 
			
		||||
                            this.url = res.data.data.ezopen
 | 
			
		||||
                            this.createVideoNew(res.data.data.accesstoken)
 | 
			
		||||
                        }else{
 | 
			
		||||
                            this.imgUrl=nowDevice.hls
 | 
			
		||||
                        }
 | 
			
		||||
                    })
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
@ -9,7 +9,8 @@
 | 
			
		||||
                <div class="left-view" v-if="deviceName != 30">
 | 
			
		||||
                    <div ref="monitor" class="monitor" id="monitor">
 | 
			
		||||
                        <!-- <video ref="videoPlayer" class="video-js" id="video-js"></video> -->
 | 
			
		||||
                        <div ref="videoPlayer" class="video-js" id="video-js"></div>
 | 
			
		||||
                        <img v-if="imgUrl" class="video-js" :src="imgUrl" alt="">
 | 
			
		||||
                        <div v-else ref="videoPlayer" class="video-js" id="video-js"></div>
 | 
			
		||||
                        <div class="video-control">
 | 
			
		||||
                            <div class="video-btn-big">
 | 
			
		||||
                                <div class="top" @mousedown="downStart(0)">
 | 
			
		||||
@ -73,6 +74,7 @@ export default {
 | 
			
		||||
            deviceState: 1,
 | 
			
		||||
            statusInterval: null,//status状态的Interval
 | 
			
		||||
            player: null,
 | 
			
		||||
            imgUrl:'',
 | 
			
		||||
            url: '',
 | 
			
		||||
            nowNum: -1,
 | 
			
		||||
        }
 | 
			
		||||
@ -212,7 +214,9 @@ export default {
 | 
			
		||||
                        this.url = res.data.data.ezopen
 | 
			
		||||
                        this.accesstoken = res.data.data.accesstoken
 | 
			
		||||
                        this.createVideoNew(res.data.data.accesstoken)
 | 
			
		||||
                    }
 | 
			
		||||
                    }else{
 | 
			
		||||
                            this.imgUrl=nowDevice.hls
 | 
			
		||||
                        }
 | 
			
		||||
                })
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user