Pārlūkot izejas kodu

Merge branch 'master' of http://git.choozmo.com:3000/choozmo/AI_Anchor_Demo

huai-sian 3 gadi atpakaļ
vecāks
revīzija
cc5ad64df0
1 mainītis faili ar 3 papildinājumiem un 18 dzēšanām
  1. 3 18
      video.html

+ 3 - 18
video.html

@@ -707,7 +707,7 @@
 
         <div class="closeplay modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel1"
             aria-hidden="true">
-            <div class="modal-dialog modal-lg">
+            <div class="modal-dialog modal-fullscreen">
                 <div class="modal-content bg-transparent border-0">
                     <div class="modal-header border-0">
                         <h5 class="modal-title" id="exampleModalLabel"></h5>
@@ -721,12 +721,7 @@
             </div>
         </div>
     </div>
-    <div><button href="#" class="play-video">Play Video</button></div>
-    <div><a href="#" class="stop-video">Stop Video</a></div>
-    <div><a href="#" class="pause-video">Pause Video</a></div>
-
-    <iframe class="youtube-video" width="560" height="315"
-        src="https://www.youtube.com/embed//C0EHKQX-B4M?enablejsapi=1" frameborder="0" allowfullscreen></iframe>
+   
 
     <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
         integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p"
@@ -739,17 +734,7 @@
     <script src="./gotovideo.js"></script>
     
     <script>
-        $('.play-video').click(function () {
-            $('.youtube-video')[0].contentWindow.postMessage('{"event":"command","func":"' + 'playVideo' + '","args":""}', '*');
-        });
-
-        $('a.stop-video').click(function () {
-            $('.youtube-video')[0].contentWindow.postMessage('{"event":"command","func":"' + 'stopVideo' + '","args":""}', '*');
-        });
-
-        $('a.pause-video').click(function () {
-            $('.youtube-video')[0].contentWindow.postMessage('{"event":"command","func":"' + 'pauseVideo' + '","args":""}', '*');
-        });
+      
 
         $("*").each(function (index, element) {
             // 此元素被點選後執行