wangguoyu 10 months ago
parent
commit
7bbd353528
1 changed files with 5 additions and 5 deletions
  1. 5 5
      pages/study/lookShipin.vue

+ 5 - 5
pages/study/lookShipin.vue

@@ -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'
+					// });
 				});
 			},