소스 검색

更新播放器互斥

zmw 4 달 전
부모
커밋
a29f4ca547
1개의 변경된 파일15개의 추가작업 그리고 0개의 파일을 삭제
  1. 15 0
      public/themes/default/views/mobile/app/health/jinjiang.blade.php

+ 15 - 0
public/themes/default/views/mobile/app/health/jinjiang.blade.php

@@ -820,6 +820,21 @@
             poster: "{{ theme_asset('mobile/gangwanjihua.jpg') }}",
         });
 
+        player.on('paly',function(){
+            player1.pause();
+            player2.pause();
+        });
+
+        player1.on('paly',function(){
+            player.pause();
+            player2.pause();
+        });
+
+        player2.on('paly',function(){
+            player.pause();
+            player1.pause();
+        });
+
         $('.module-title-nav').click(function() {
             $('.module-title-nav').removeClass('active');
             $(this).addClass('active');