mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-06-29 21:47:50 +08:00
Compare commits
1 Commits
a8e13f8cb8
...
8503a26544
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8503a26544 |
@ -54,12 +54,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
if (this.$route.params.url) {
|
const paramUrl = decodeURIComponent(this.$route.params.url)
|
||||||
const paramUrl = decodeURIComponent(this.$route.params.url)
|
console.log(paramUrl)
|
||||||
console.log(paramUrl)
|
if (!this.videoUrl && paramUrl) {
|
||||||
if (!this.videoUrl) {
|
this.videoUrl = paramUrl
|
||||||
this.videoUrl = paramUrl
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
this.btnDom = document.getElementById('buttonsBox')
|
this.btnDom = document.getElementById('buttonsBox')
|
||||||
},
|
},
|
||||||
@ -219,10 +217,6 @@ 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,9 +44,6 @@ 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,
|
||||||
@ -55,7 +52,6 @@ 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,13 +473,10 @@ export default {
|
|||||||
this.mediaServerId = streamInfo.mediaServerId
|
this.mediaServerId = streamInfo.mediaServerId
|
||||||
this.playFromStreamInfo(false, streamInfo)
|
this.playFromStreamInfo(false, streamInfo)
|
||||||
},
|
},
|
||||||
getUrlByStreamInfo(streamInfo) {
|
getUrlByStreamInfo() {
|
||||||
streamInfo = streamInfo || this.streamInfo
|
let streamInfo = this.streamInfo
|
||||||
if (!streamInfo) {
|
if (this.streamInfo.transcodeStream) {
|
||||||
return ''
|
streamInfo = this.streamInfo.transcodeStream
|
||||||
}
|
|
||||||
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