|
@@ -231,21 +231,21 @@ export default {
|
|
this.course = res.result
|
|
this.course = res.result
|
|
if (res.result.fileType == 1) {
|
|
if (res.result.fileType == 1) {
|
|
this.startList = false
|
|
this.startList = false
|
|
- var videoObject = null
|
|
|
|
- var isChrome = window.navigator.userAgent.indexOf('Chrome') !== -1 //不同的浏览器显示方式不一样, 不是chrome的浏览器需要使用hls.js这个文件
|
|
|
|
- if (isChrome) {
|
|
|
|
- videoObject = this.videoObject
|
|
|
|
- } else {
|
|
|
|
- videoObject = this.videoObjectNot
|
|
|
|
- }
|
|
|
|
|
|
+ // var videoObject = null
|
|
|
|
+ // var isChrome = window.navigator.userAgent.indexOf('Chrome') !== -1 //不同的浏览器显示方式不一样, 不是chrome的浏览器需要使用hls.js这个文件
|
|
|
|
+ // if (isChrome) {
|
|
|
|
+ // videoObject = this.videoObject
|
|
|
|
+ // } else {
|
|
|
|
+ // videoObject = this.videoObjectNot
|
|
|
|
+ // }
|
|
if (res.result.fileId) {
|
|
if (res.result.fileId) {
|
|
- videoObject.video = textDes(
|
|
|
|
|
|
+ this.videoObject.video = textDes(
|
|
'https://aweme.snssdk.com/aweme/v1/playwm/?video_id=' + res.result.fileId + '&line=0'
|
|
'https://aweme.snssdk.com/aweme/v1/playwm/?video_id=' + res.result.fileId + '&line=0'
|
|
)
|
|
)
|
|
} else {
|
|
} else {
|
|
- videoObject.video = textDes(res.result.fileUrl)
|
|
|
|
|
|
+ this.videoObject.video = textDes(res.result.fileUrl)
|
|
}
|
|
}
|
|
- let player = new ckplayer(videoObject)
|
|
|
|
|
|
+ let player = new ckplayer(this.videoObject)
|
|
} else {
|
|
} else {
|
|
this.startList = true
|
|
this.startList = true
|
|
getAction('http://www.ljserver.cn:8088/v1/api/file/getViewUrlWebPath', {
|
|
getAction('http://www.ljserver.cn:8088/v1/api/file/getViewUrlWebPath', {
|
|
@@ -260,26 +260,6 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
- // if (keys[0] == '11') {
|
|
|
|
- // this.startList = false
|
|
|
|
- // this.videoObject.video = textDes(
|
|
|
|
- // 'https://ctop-media.oss-cn-beijing.aliyuncs.com/video/2020-03-25/0324%E6%96%97%E5%9C%B0%E4%B8%BB%20%E6%9B%B9%E7%90%B33-1585130744273.mp4'
|
|
|
|
- // )
|
|
|
|
- // } else {
|
|
|
|
- // this.startList = true
|
|
|
|
- // getAction('http://www.ljserver.cn:8088/v1/api/file/getViewUrlWebPath', {
|
|
|
|
- // fileUrl: 'https://ctop-media.oss-cn-beijing.aliyuncs.com/zixingche.docx'
|
|
|
|
- // }).then(res => {
|
|
|
|
- // console.log(res)
|
|
|
|
- // let r = res.data
|
|
|
|
- // sessionStorage.wpsUrl = r.wpsUrl
|
|
|
|
- // sessionStorage.token = r.token
|
|
|
|
- // this.openWps(r.wpsUrl, r.token)
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
- // let player = new ckplayer(this.videoObject)
|
|
|
|
} else {
|
|
} else {
|
|
return
|
|
return
|
|
}
|
|
}
|