mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-06-29 21:47:50 +08:00
Compare commits
3 Commits
6a5bdf9204
...
1ca4955a69
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1ca4955a69 | ||
|
|
37a4ea2a56 | ||
|
|
da98101aac |
@ -861,7 +861,7 @@
|
|||||||
320623,如东县,3206
|
320623,如东县,3206
|
||||||
320681,启东市,3206
|
320681,启东市,3206
|
||||||
320682,如皋市,3206
|
320682,如皋市,3206
|
||||||
320684,海门市,3206
|
320684,海门区,3206
|
||||||
320685,海安市,3206
|
320685,海安市,3206
|
||||||
3207,连云港市,32
|
3207,连云港市,32
|
||||||
320703,连云区,3207
|
320703,连云区,3207
|
||||||
@ -918,8 +918,6 @@
|
|||||||
33,浙江省,
|
33,浙江省,
|
||||||
3301,杭州市,33
|
3301,杭州市,33
|
||||||
330102,上城区,3301
|
330102,上城区,3301
|
||||||
330103,下城区,3301
|
|
||||||
330104,江干区,3301
|
|
||||||
330105,拱墅区,3301
|
330105,拱墅区,3301
|
||||||
330106,西湖区,3301
|
330106,西湖区,3301
|
||||||
330108,滨江区,3301
|
330108,滨江区,3301
|
||||||
@ -927,6 +925,8 @@
|
|||||||
330110,余杭区,3301
|
330110,余杭区,3301
|
||||||
330111,富阳区,3301
|
330111,富阳区,3301
|
||||||
330112,临安区,3301
|
330112,临安区,3301
|
||||||
|
330113,临平区,3301
|
||||||
|
330114,钱塘区,3301
|
||||||
330122,桐庐县,3301
|
330122,桐庐县,3301
|
||||||
330127,淳安县,3301
|
330127,淳安县,3301
|
||||||
330182,建德市,3301
|
330182,建德市,3301
|
||||||
|
|||||||
|
@ -54,10 +54,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
const paramUrl = decodeURIComponent(this.$route.params.url)
|
if (this.$route.params.url) {
|
||||||
console.log(paramUrl)
|
const paramUrl = decodeURIComponent(this.$route.params.url)
|
||||||
if (!this.videoUrl && paramUrl) {
|
console.log(paramUrl)
|
||||||
this.videoUrl = paramUrl
|
if (!this.videoUrl) {
|
||||||
|
this.videoUrl = paramUrl
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.btnDom = document.getElementById('buttonsBox')
|
this.btnDom = document.getElementById('buttonsBox')
|
||||||
},
|
},
|
||||||
@ -217,6 +219,10 @@ export default {
|
|||||||
this.play(this.videoUrl)
|
this.play(this.videoUrl)
|
||||||
},
|
},
|
||||||
play: function(url) {
|
play: function(url) {
|
||||||
|
if (!url) {
|
||||||
|
console.warn('Jessibuca -> invalid url, skip play')
|
||||||
|
return
|
||||||
|
}
|
||||||
this.videoUrl = url
|
this.videoUrl = url
|
||||||
console.log('Jessibuca -> url: ', url)
|
console.log('Jessibuca -> url: ', url)
|
||||||
if (!jessibucaPlayer[this._uid]) {
|
if (!jessibucaPlayer[this._uid]) {
|
||||||
|
|||||||
@ -44,6 +44,9 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getMediaInfo: function() {
|
getMediaInfo: function() {
|
||||||
|
if (!this.app || !this.stream || !this.mediaServerId) {
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$store.dispatch('server/getMediaInfo', {
|
this.$store.dispatch('server/getMediaInfo', {
|
||||||
app: this.app,
|
app: this.app,
|
||||||
stream: this.stream,
|
stream: this.stream,
|
||||||
@ -52,6 +55,7 @@ export default {
|
|||||||
.then(data => {
|
.then(data => {
|
||||||
this.info = data
|
this.info = data
|
||||||
})
|
})
|
||||||
|
.catch(() => {})
|
||||||
},
|
},
|
||||||
startTask: function() {
|
startTask: function() {
|
||||||
this.task = setInterval(this.getMediaInfo, 1000)
|
this.task = setInterval(this.getMediaInfo, 1000)
|
||||||
|
|||||||
@ -473,10 +473,13 @@ export default {
|
|||||||
this.mediaServerId = streamInfo.mediaServerId
|
this.mediaServerId = streamInfo.mediaServerId
|
||||||
this.playFromStreamInfo(false, streamInfo)
|
this.playFromStreamInfo(false, streamInfo)
|
||||||
},
|
},
|
||||||
getUrlByStreamInfo() {
|
getUrlByStreamInfo(streamInfo) {
|
||||||
let streamInfo = this.streamInfo
|
streamInfo = streamInfo || this.streamInfo
|
||||||
if (this.streamInfo.transcodeStream) {
|
if (!streamInfo) {
|
||||||
streamInfo = this.streamInfo.transcodeStream
|
return ''
|
||||||
|
}
|
||||||
|
if (streamInfo.transcodeStream) {
|
||||||
|
streamInfo = streamInfo.transcodeStream
|
||||||
}
|
}
|
||||||
let videoUrl
|
let videoUrl
|
||||||
if (location.protocol === 'https:') {
|
if (location.protocol === 'https:') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user