[1078] 代码整理
This commit is contained in:
@@ -98,12 +98,8 @@
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item command="records" :disabled="device == null || !device.status">
|
||||
设备录像</el-dropdown-item>
|
||||
<el-dropdown-item command="records" :disabled="device == null || !device.status">
|
||||
双向对讲</el-dropdown-item>
|
||||
<el-dropdown-item command="records" :disabled="device == null || !device.status">
|
||||
监听</el-dropdown-item>
|
||||
<el-dropdown-item command="records" :disabled="device == null || !device.status">
|
||||
中心广播</el-dropdown-item>
|
||||
<el-dropdown-item command="talk" :disabled="device == null || !device.status">
|
||||
对讲</el-dropdown-item>
|
||||
<el-dropdown-item command="cloudRecords" :disabled="device == null || !device.status">
|
||||
云端录像</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
@@ -130,7 +126,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import devicePlayer from '../jtDevicePlayer.vue'
|
||||
import devicePlayer from '../dialog/jtDevicePlayer.vue'
|
||||
import channelEdit from './edit.vue'
|
||||
import dayjs from 'dayjs'
|
||||
|
||||
@@ -252,6 +248,8 @@ export default {
|
||||
this.queryRecords(itemData)
|
||||
} else if (command === 'cloudRecords') {
|
||||
this.queryCloudRecords(itemData)
|
||||
} else if (command === 'talk') {
|
||||
this.talk(itemData)
|
||||
} else {
|
||||
this.$message.info('尚不支持')
|
||||
}
|
||||
@@ -264,6 +262,11 @@ export default {
|
||||
const channelId = itemData.channelId
|
||||
this.$router.push(`/cloudRecord/detail/rtp/jt_${deviceId}_${channelId}`)
|
||||
},
|
||||
talk: function(itemData) {
|
||||
const deviceId = this.device.phoneNumber
|
||||
const channelId = itemData.channelId
|
||||
|
||||
},
|
||||
stopDevicePush: function(itemData) {
|
||||
this.$store.dispatch('jtDevice/stopPlay', {
|
||||
phoneNumber: this.device.phoneNumber,
|
||||
|
||||
@@ -321,6 +321,12 @@
|
||||
<mediaInfo ref="mediaInfo" :app="app" :stream="streamId" :media-server-id="mediaServerId" />
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="语音对讲" name="broadcast">
|
||||
<!-- <div style="padding: 0 10px">-->
|
||||
<!-- <el-radio-group v-model="broadcastMode" :disabled="broadcastStatus !== -1">-->
|
||||
<!-- <el-radio :label="2">双向对讲</el-radio>-->
|
||||
<!-- <el-radio :label="4">中心广播</el-radio>-->
|
||||
<!-- </el-radio-group>-->
|
||||
<!-- </div>-->
|
||||
<div class="trank" style="text-align: center;">
|
||||
<el-button
|
||||
:type="getBroadcastStatus()"
|
||||
@@ -347,11 +353,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import rtcPlayer from '../common/rtcPlayer.vue'
|
||||
import rtcPlayer from '../../common/rtcPlayer.vue'
|
||||
import crypto from 'crypto'
|
||||
import jessibucaPlayer from '../common/jessibuca.vue'
|
||||
import mediaInfo from '../common/mediaInfo.vue'
|
||||
import H265web from '../common/h265web.vue'
|
||||
import jessibucaPlayer from '../../common/jessibuca.vue'
|
||||
import mediaInfo from '../../common/mediaInfo.vue'
|
||||
import H265web from '../../common/h265web.vue'
|
||||
|
||||
export default {
|
||||
name: 'DevicePlayer',
|
||||
@@ -410,7 +416,7 @@ export default {
|
||||
getPlayerShared: function() {
|
||||
return {
|
||||
sharedUrl: window.location.origin + '/#/play/wasm/' + encodeURIComponent(this.videoUrl),
|
||||
sharedIframe: '<iframe src="' + window.location.origin + '/#/play/wasm/' + encodeURIComponent(this.videoUrl) + '"></iframe>',
|
||||
sharedIframe: '' + window.location.origin + '<iframe src="/public#/play/wasm/"></iframe>' + encodeURIComponent(this.videoUrl) + '',
|
||||
sharedRtmp: this.videoUrl
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user