pa放开语音播放
This commit is contained in:
parent
e9facb70f5
commit
2b3b7c189d
@ -29,7 +29,7 @@ export function handlerUrl() {
|
||||
// BASE_API = 'http://114.116.51.125/jlcloud';
|
||||
// BASE_API = 'http://192.168.33.93:9000'; // 周寅
|
||||
// BASE_API = 'http://192.168.3.94:9000'; // 旭强
|
||||
BASE_API = 'http://192.168.33.207:9000'; // 张赛
|
||||
// BASE_API = 'http://192.168.33.207:9000'; // 张赛
|
||||
// BASE_API = 'http://192.168.3.5:9000'; // 夏增彬
|
||||
// BASE_API = 'http://192.168.3.37:9000'; // 卫志宏
|
||||
// BASE_API = 'http://b29z135112.zicp.vip';
|
||||
@ -59,9 +59,12 @@ export function handlerUrl() {
|
||||
OSS_URL = 'https://192.168.53.10/oss-rtss';
|
||||
} else if (process.env.NODE_ENV === 'production') {
|
||||
// 远程发布分支
|
||||
BASE_API = 'https://joylink.club/jlcloud';
|
||||
BASE_SITE = 'https://joylink.club/cbtc';
|
||||
OSS_URL = 'https://joylink.club/oss-rtss';
|
||||
// BASE_API = 'https://joylink.club/jlcloud';
|
||||
// BASE_SITE = 'https://joylink.club/cbtc';
|
||||
// OSS_URL = 'https://joylink.club/oss-rtss';
|
||||
BASE_API = 'http://10.30.1.21/rtss-server';
|
||||
BASE_SITE = 'http://10.30.1.21';
|
||||
OSS_URL = 'https://10.30.1.21/oss-rtss';
|
||||
}
|
||||
// VOICE_API, UPLOAD_API, BASE_SITE, PROD_API
|
||||
const PROD_API = 'https://joylink.club/jlcloud';
|
||||
|
@ -322,7 +322,7 @@ export default {
|
||||
this.initTimedPlayList();
|
||||
},
|
||||
'stationId': function () {
|
||||
const params2 = { mapId: this.$route.querysetMapData.mapId, system: 'PA', station: this.stationId };
|
||||
const params2 = { mapId: this.$route.query.mapId, system: 'PA', station: this.stationId };
|
||||
queryIscsDeviceCod(params2).then(resp => {
|
||||
this.iscsDeviceList = resp.data;
|
||||
this.iscsDeviceList.forEach(device => {
|
||||
@ -486,6 +486,7 @@ export default {
|
||||
if (!audio) { return; }
|
||||
audio.pause();
|
||||
audio.src = this.$store.state.user.ossUrl + info.url;
|
||||
console.log(audio.src, ';src');
|
||||
audio.play();
|
||||
const _that = this;
|
||||
audio.addEventListener('ended', function() {
|
||||
@ -609,10 +610,10 @@ export default {
|
||||
type: 'BGM'
|
||||
};
|
||||
sendCommandNew(this.$route.query.group, 'ISCS_PA_Play', params).then(resp => {
|
||||
// const bgmUrl = this.$store.state.user.resourcesUrl + this.bgmResources[0].url;
|
||||
// const audio = document.getElementById('voice');
|
||||
// audio.src = bgmUrl;
|
||||
// audio.play();
|
||||
const bgmUrl = this.$store.state.user.ossUrl + this.bgmResources[0].url;
|
||||
const audio = document.getElementById('voice');
|
||||
audio.src = bgmUrl;
|
||||
audio.play();
|
||||
}).catch(() => {
|
||||
this.$message.error('背景音乐播放失败!');
|
||||
});
|
||||
@ -708,10 +709,11 @@ export default {
|
||||
type: this.videoMode
|
||||
};
|
||||
sendCommandNew(this.$route.query.group, 'ISCS_PA_Play', params).then(resp => {
|
||||
// this.voiceUrl = this.$store.state.user.resourcesUrl + this.resourcesList[this.messageIndex].url;
|
||||
// const audio = document.getElementById('voice');
|
||||
// audio.src = this.voiceUrl;
|
||||
// audio.play();
|
||||
this.voiceUrl = this.$store.state.user.ossUrl + this.resourcesList[this.messageIndex].url;
|
||||
console.log(this.voiceUrl, ']]]]]]');
|
||||
const audio = document.getElementById('voice');
|
||||
audio.src = this.voiceUrl;
|
||||
audio.play();
|
||||
}).catch(() => {
|
||||
this.$message.error('发布广播失败!');
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user