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

修复直播观看回放看不了的问题

上级 f3397738
...@@ -71,6 +71,19 @@ export default { ...@@ -71,6 +71,19 @@ export default {
window.open(live.record_url || live.join_url) window.open(live.record_url || live.join_url)
return return
} }
// CC直播
if (data.type === 5) {
const live = data.live
const hasRecordUrl = live.enable_record && live.record_url
if ([3, 5].includes(live.live_status) && !hasRecordUrl) {
this.$message.error(this.$t('viewerMain.liveEnd'))
return
}
// 新窗口打开
const joinUrl = `https://view.csslcloud.net/api/view/index?roomid=${live.room_id}&userid=${live.account_id}&autoLogin=true&viewername=${live.user_name}&viewertoken=${live.play_pass}`
window.open(live.record_url || joinUrl)
return
}
// 课程大作业 // 课程大作业
if (data.id === 'course_work' && !this.data.survey) { if (data.id === 'course_work' && !this.data.survey) {
this.$message(this.$t('viewerMain.teachingEvaluationTips')) this.$message(this.$t('viewerMain.teachingEvaluationTips'))
......
...@@ -722,10 +722,9 @@ export default { ...@@ -722,10 +722,9 @@ export default {
return return
} }
// 新窗口打开 // 新窗口打开
if (this.isOpenNewTabFlag) { const joinUrl = `https://view.csslcloud.net/api/view/index?roomid=${live.room_id}&userid=${live.account_id}&autoLogin=true&viewername=${live.user_name}&viewertoken=${live.play_pass}`
this.openNewTab(sid, cid, vid) window.open(live.record_url || joinUrl)
return return
}
} }
// zoom直播 // zoom直播
if (type === 8) { if (type === 8) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论