diff --git a/web_src/src/components/dialog/devicePlayer.vue b/web_src/src/components/dialog/devicePlayer.vue index 9653833f..b7187b77 100644 --- a/web_src/src/components/dialog/devicePlayer.vue +++ b/web_src/src/components/dialog/devicePlayer.vue @@ -3,7 +3,7 @@ - +
@@ -185,7 +185,7 @@ export default { deviceId: '', channelId: '', tabActiveName: 'media', - hasaudio: false, + hasAudio: false, loadingRecords: false, recordsLoading: false, isLoging: false, @@ -235,6 +235,8 @@ export default { } }, openDialog: function (tab, deviceId, channelId, param) { + console.log("openDialog") + console.log(param) this.tabActiveName = tab; this.channelId = channelId; this.deviceId = deviceId; @@ -268,7 +270,7 @@ export default { }, play: function (streamInfo, hasAudio) { - this.hasaudio = hasAudio; + this.hasAudio = hasAudio; this.isLoging = false; // this.videoUrl = streamInfo.rtc; this.videoUrl = this.getUrlByStreamInfo(streamInfo); diff --git a/web_src/src/components/dialog/jessibuca.vue b/web_src/src/components/dialog/jessibuca.vue index ff91cd10..d9676b47 100644 --- a/web_src/src/components/dialog/jessibuca.vue +++ b/web_src/src/components/dialog/jessibuca.vue @@ -46,7 +46,7 @@ export default { forceNoOffscreen: false, }; }, - props: ['videoUrl', 'error', 'hasaudio', 'height'], + props: ['videoUrl', 'error', 'hasAudio', 'height'], mounted () { window.onerror = (msg) => { // console.error(msg) @@ -73,6 +73,7 @@ export default { create(){ let options = {}; console.log(this.$refs.container) + console.log("hasAudio " + this.hasAudio) this.jessibuca = new window.Jessibuca(Object.assign( { @@ -83,7 +84,7 @@ export default { // text: "WVP-PRO", // background: "bg.jpg", loadingText: "加载中", - hasAudio: this.hasAudio, + hasAudio: typeof (this.hasAudio) =="undefined"? true: this.hasAudio, debug: false, supportDblclickFullscreen: false, // 是否支持屏幕的双击事件,触发全屏,取消全屏事件。 operateBtns: {