提交 dcb2c16f authored 作者: 王鹏飞's avatar 王鹏飞

直播状态修改

上级 a07bd999
......@@ -48,7 +48,7 @@ export default {
},
// 是否直播结束
isLiveEnd() {
return this.live.live_status === 2
return this.live.live_status === 3
},
// 是否有回放
hasRecord() {
......
......@@ -463,7 +463,7 @@ export default {
cAction.Player.getChapterList(cid, sid, _id).then(json => {
this.live = (json.curJson && json.curJson.live) || {}
if (this.live.id) {
if (this.live.live_status === 2 && this.live.enable_record && this.live.record_url) {
if (this.live.live_status === 3 && this.live.enable_record && this.live.record_url) {
this.live.url = this.live.record_url
} else {
this.live.viewer_name = window.G.UserInfo.student_info.personal_name || window.G.UserInfo.nickname
......@@ -513,7 +513,7 @@ export default {
if (type === 5) {
const live = data.live
const status = live.live_status
if (status === 2 && !live.enable_record) {
if (status === 3 && !live.enable_record) {
this.$message.error(live.statusStr)
return
}
......
......@@ -123,7 +123,7 @@ export default {
data.live_status = parseInt(data.live_status)
const { live_status: liveStatus, type: liveType = 5, start_time: liveTime } = data
let message = this.calcTimeText(liveTime, liveStatus)
if (liveStatus === 2 && !data.enable_record) {
if (liveStatus === 3 && !data.enable_record) {
message = this.$t('live.noPlayback')
this.message && this.message.close()
this.message = this.$message({ type: 'warning', offset: 0, message })
......@@ -172,7 +172,7 @@ export default {
// https://doc.bokecc.com/live/Appendix_1.html
const liveStatus = data.live_status
data.user_name = data.user_name || this.nickName
if (liveStatus === 2 && data.enable_record === 1) {
if (liveStatus === 3 && data.enable_record === 1) {
// enable_record 0:不启用回放 1:开启回放
// 查看回放
// const url = `https://view.csslcloud.net/api/view/callback?recordid=${data.record_id}&roomid=${data.room_id}&userid=${data.account_id}&autoLogin=true&viewername=${data.user_name}&viewertoken=${data.play_pass}`
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论