|
@@ -555,17 +555,21 @@ export default {
|
|
|
if (self.timer) {
|
|
|
clearInterval(self.timer);
|
|
|
}
|
|
|
- if (self.vid) {
|
|
|
+ if (item.recordingUrl) {
|
|
|
+ self.vid = item.recordingUrl;
|
|
|
+ if (this.player) {
|
|
|
+ this.player.changeVid(this.vid);
|
|
|
+ return;
|
|
|
+ }
|
|
|
//切换视频
|
|
|
// #ifdef H5
|
|
|
this.loadPlayerScript(this.loadPlayer);
|
|
|
// #endif
|
|
|
// #ifdef MP-WEIXIN
|
|
|
- var polyvPlayerContext = self.selectComponent("#player");
|
|
|
- polyvPlayerContext.changeVid(item.recordingUrl);
|
|
|
+ this.player = self.selectComponent("#player");
|
|
|
// #endif
|
|
|
- }else{
|
|
|
- self.vid = item.recordingUrl
|
|
|
+ } else {
|
|
|
+ self.$u.toast("地址错误,无法播放");
|
|
|
}
|
|
|
|
|
|
self.startStatus = true;
|
|
@@ -1219,10 +1223,6 @@ export default {
|
|
|
},
|
|
|
// 播放视频
|
|
|
loadPlayer() {
|
|
|
- if (this.player) {
|
|
|
- this.polyvPlayerContext.changeVid(this.vid);
|
|
|
- return;
|
|
|
- }
|
|
|
const polyvPlayer = window.polyvPlayer;
|
|
|
this.$api.polyvVideoSign(this.vid).then(async (res) => {
|
|
|
console.log("播放凭证res", res);
|