|
@@ -1431,8 +1431,8 @@ export default {
|
|
|
this.CountTo = -1
|
|
|
console.log('this.goodsPlayConfig', this.goodsPlayConfig, polyvPlayerContext);
|
|
|
if (this.goodsPlayConfig && this.goodsPlayConfig.autoPlay > 0) {
|
|
|
- this.autoplay = true
|
|
|
// #ifdef MP-WEIXIN
|
|
|
+ this.autoplay = true
|
|
|
var polyvPlayerContext = this.selectComponent("#playerVideo")
|
|
|
polyvPlayerContext.play()
|
|
|
// #endif
|
|
@@ -3186,15 +3186,18 @@ export default {
|
|
|
this.getNoteList();
|
|
|
if (self.goodsData.goodsPlayConfig) {
|
|
|
self.goodsPlayConfig = JSON.parse(self.goodsData.goodsPlayConfig);
|
|
|
- // if (self.goodsPlayConfig.autoPlay > 0) {
|
|
|
- // self.autoplay = true;
|
|
|
- // }
|
|
|
+ if (self.goodsPlayConfig.autoPlay > 0) {
|
|
|
+ // #ifdef H5
|
|
|
+ self.autoplay = true;
|
|
|
+ console.log('是否自动播放:', self.autoplay);
|
|
|
+ // #endif
|
|
|
+ }
|
|
|
if (self.goodsPlayConfig.drag > 0) {
|
|
|
// #ifdef MP-WEIXIN
|
|
|
self.isAllowSeek = "yes";
|
|
|
// #endif
|
|
|
// #ifdef H5
|
|
|
- this.H5isAllowSeek = 'on'
|
|
|
+ this.H5isAllowSeek = 'off'
|
|
|
// #endif
|
|
|
}
|
|
|
if (self.goodsPlayConfig.speed > 0) {
|
|
@@ -3492,6 +3495,7 @@ export default {
|
|
|
})
|
|
|
|
|
|
this.player.on("s2j_onPlayOver", () => { // 当前视频播放完毕时触发
|
|
|
+ console.log('结束了结束了');
|
|
|
this.hasStart = false
|
|
|
clearInterval(this.studyTimer)
|
|
|
clearInterval(this.timer)
|