|
@@ -3426,8 +3426,9 @@ export default {
|
|
|
// 播放视频
|
|
|
loadPlayer() {
|
|
|
const polyvPlayer = window.polyvPlayer
|
|
|
- console.log('h5开始', this.recordObj.videoCurrentTime, 666, this.vid);
|
|
|
+ console.log('h5开始',polyvPlayer, this.recordObj.videoCurrentTime, 666, this.vid);
|
|
|
this.$api.polyvVideoSign(this.vid).then(async (res) => {
|
|
|
+ console.log('播放凭证res', res);
|
|
|
this.player = await polyvPlayer({
|
|
|
wrap: "#player",
|
|
|
width: '100%',
|
|
@@ -3435,6 +3436,7 @@ export default {
|
|
|
height: 218,
|
|
|
ban_history_time: "on",
|
|
|
vid: this.vid,
|
|
|
+ forceH5: true,
|
|
|
autoplay: this.autoplay, // 自动播放
|
|
|
ban_seek: this.H5isAllowSeek, // 是否禁止拖拽进度条
|
|
|
speed: this.playbackRate, // 倍数
|
|
@@ -3444,12 +3446,13 @@ export default {
|
|
|
watchStartTime: this.recordObj.videoCurrentTime, // 播放开始时间,表示视频从第几秒开始播放,参数值需小于视频时长
|
|
|
ts: res.data.data.ts, // 移动播放加密视频需传入的时间戳。
|
|
|
sign: res.data.data.sign, // 移动端播放加密视频所需的签名
|
|
|
- playsafe: (vid, next) => { // PC端播放加密视频所需的授权凭证
|
|
|
- next();
|
|
|
- // this.$api.obtainpolyvvideopcsign(vid).then((res) => {
|
|
|
- // next(res.data);
|
|
|
- // });
|
|
|
- },
|
|
|
+ // playsafe: (vid, next) => { // PC端播放加密视频所需的授权凭证
|
|
|
+ // console.log('111111111111', vid);
|
|
|
+ // // this.$api.obtainpolyvvideopcsign(vid).then((res) => {
|
|
|
+ // // console.log('请求完后', res);
|
|
|
+ // // next(res.data.data);
|
|
|
+ // // });
|
|
|
+ // },
|
|
|
});
|
|
|
|
|
|
polyvPlayerContext = this.player
|