Compare commits

..

1 Commits

Author SHA1 Message Date
阿斌
eebe9cd872
Pre Merge pull request !41 from 阿斌/N/A 2026-05-21 09:42:36 +00:00
3 changed files with 8 additions and 21 deletions

View File

@ -54,12 +54,10 @@ export default {
}
},
created() {
if (this.$route.params.url) {
const paramUrl = decodeURIComponent(this.$route.params.url)
console.log(paramUrl)
if (!this.videoUrl) {
this.videoUrl = paramUrl
}
const paramUrl = decodeURIComponent(this.$route.params.url)
console.log(paramUrl)
if (!this.videoUrl && paramUrl) {
this.videoUrl = paramUrl
}
this.btnDom = document.getElementById('buttonsBox')
},
@ -219,10 +217,6 @@ export default {
this.play(this.videoUrl)
},
play: function(url) {
if (!url) {
console.warn('Jessibuca -> invalid url, skip play')
return
}
this.videoUrl = url
console.log('Jessibuca -> url: ', url)
if (!jessibucaPlayer[this._uid]) {

View File

@ -44,9 +44,6 @@ export default {
},
methods: {
getMediaInfo: function() {
if (!this.app || !this.stream || !this.mediaServerId) {
return
}
this.$store.dispatch('server/getMediaInfo', {
app: this.app,
stream: this.stream,
@ -55,7 +52,6 @@ export default {
.then(data => {
this.info = data
})
.catch(() => {})
},
startTask: function() {
this.task = setInterval(this.getMediaInfo, 1000)

View File

@ -473,13 +473,10 @@ export default {
this.mediaServerId = streamInfo.mediaServerId
this.playFromStreamInfo(false, streamInfo)
},
getUrlByStreamInfo(streamInfo) {
streamInfo = streamInfo || this.streamInfo
if (!streamInfo) {
return ''
}
if (streamInfo.transcodeStream) {
streamInfo = streamInfo.transcodeStream
getUrlByStreamInfo() {
let streamInfo = this.streamInfo
if (this.streamInfo.transcodeStream) {
streamInfo = this.streamInfo.transcodeStream
}
let videoUrl
if (location.protocol === 'https:') {