修改声音处理逻辑
parent
367ec111e4
commit
06d78575cc
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<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()">
|
||||||
<!-- <LivePlayer v-if="showVideoDialog" ref="videoPlayer" :videoUrl="videoUrl" :error="videoError" :message="videoError" :hasaudio="hasaudio" fluent autoplay live></LivePlayer> -->
|
<!-- <LivePlayer v-if="showVideoDialog" ref="videoPlayer" :videoUrl="videoUrl" :error="videoError" :message="videoError" :hasaudio="hasaudio" fluent autoplay live></LivePlayer> -->
|
||||||
<player ref="videoPlayer" :visible.sync="showVideoDialog" :videoUrl="videoUrl" :error="videoError" :message="videoError" :height="false" :hasaudio="hasaudio" fluent autoplay live ></player>
|
<player ref="videoPlayer" :visible.sync="showVideoDialog" :videoUrl="videoUrl" :error="videoError" :message="videoError" :height="false" :hasAudio="hasAudio" fluent autoplay live ></player>
|
||||||
<div id="shared" style="text-align: right; margin-top: 1rem;">
|
<div id="shared" style="text-align: right; margin-top: 1rem;">
|
||||||
<el-tabs v-model="tabActiveName" @tab-click="tabHandleClick">
|
<el-tabs v-model="tabActiveName" @tab-click="tabHandleClick">
|
||||||
<el-tab-pane label="实时视频" name="media">
|
<el-tab-pane label="实时视频" name="media">
|
||||||
|
@ -185,7 +185,7 @@ export default {
|
||||||
deviceId: '',
|
deviceId: '',
|
||||||
channelId: '',
|
channelId: '',
|
||||||
tabActiveName: 'media',
|
tabActiveName: 'media',
|
||||||
hasaudio: false,
|
hasAudio: false,
|
||||||
loadingRecords: false,
|
loadingRecords: false,
|
||||||
recordsLoading: false,
|
recordsLoading: false,
|
||||||
isLoging: false,
|
isLoging: false,
|
||||||
|
@ -235,6 +235,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
openDialog: function (tab, deviceId, channelId, param) {
|
openDialog: function (tab, deviceId, channelId, param) {
|
||||||
|
console.log("openDialog")
|
||||||
|
console.log(param)
|
||||||
this.tabActiveName = tab;
|
this.tabActiveName = tab;
|
||||||
this.channelId = channelId;
|
this.channelId = channelId;
|
||||||
this.deviceId = deviceId;
|
this.deviceId = deviceId;
|
||||||
|
@ -268,7 +270,7 @@ export default {
|
||||||
},
|
},
|
||||||
play: function (streamInfo, hasAudio) {
|
play: function (streamInfo, hasAudio) {
|
||||||
|
|
||||||
this.hasaudio = hasAudio;
|
this.hasAudio = hasAudio;
|
||||||
this.isLoging = false;
|
this.isLoging = false;
|
||||||
// this.videoUrl = streamInfo.rtc;
|
// this.videoUrl = streamInfo.rtc;
|
||||||
this.videoUrl = this.getUrlByStreamInfo(streamInfo);
|
this.videoUrl = this.getUrlByStreamInfo(streamInfo);
|
||||||
|
|
|
@ -46,7 +46,7 @@ export default {
|
||||||
forceNoOffscreen: false,
|
forceNoOffscreen: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: ['videoUrl', 'error', 'hasaudio', 'height'],
|
props: ['videoUrl', 'error', 'hasAudio', 'height'],
|
||||||
mounted () {
|
mounted () {
|
||||||
window.onerror = (msg) => {
|
window.onerror = (msg) => {
|
||||||
// console.error(msg)
|
// console.error(msg)
|
||||||
|
@ -73,6 +73,7 @@ export default {
|
||||||
create(){
|
create(){
|
||||||
let options = {};
|
let options = {};
|
||||||
console.log(this.$refs.container)
|
console.log(this.$refs.container)
|
||||||
|
console.log("hasAudio " + this.hasAudio)
|
||||||
|
|
||||||
this.jessibuca = new window.Jessibuca(Object.assign(
|
this.jessibuca = new window.Jessibuca(Object.assign(
|
||||||
{
|
{
|
||||||
|
@ -83,7 +84,7 @@ export default {
|
||||||
// text: "WVP-PRO",
|
// text: "WVP-PRO",
|
||||||
// background: "bg.jpg",
|
// background: "bg.jpg",
|
||||||
loadingText: "加载中",
|
loadingText: "加载中",
|
||||||
hasAudio: this.hasAudio,
|
hasAudio: typeof (this.hasAudio) =="undefined"? true: this.hasAudio,
|
||||||
debug: false,
|
debug: false,
|
||||||
supportDblclickFullscreen: false, // 是否支持屏幕的双击事件,触发全屏,取消全屏事件。
|
supportDblclickFullscreen: false, // 是否支持屏幕的双击事件,触发全屏,取消全屏事件。
|
||||||
operateBtns: {
|
operateBtns: {
|
||||||
|
|
Loading…
Reference in New Issue