|
@@ -72,7 +72,7 @@
|
|
|
this.videoId = data.videoId
|
|
|
this.progressMarkers = data.progressMarkers
|
|
|
this.getLive(); //获取播放凭证
|
|
|
- uni.$on('playEnd', this.playEnd);
|
|
|
+ //uni.$on('playEnd', this.playEnd);
|
|
|
},
|
|
|
methods: {
|
|
|
playEnd(data) {
|
|
@@ -228,10 +228,10 @@
|
|
|
|
|
|
});
|
|
|
player.one('ended', function() {
|
|
|
-
|
|
|
- uni.$emit('playEnd', {
|
|
|
- data: 'end'
|
|
|
- });
|
|
|
+ that.$ownerInstance.callMethod('playEnd', {data:'end'})
|
|
|
+ // uni.$emit('playEnd', {
|
|
|
+ // data: 'end'
|
|
|
+ // });
|
|
|
});
|
|
|
},
|
|
|
|