User Tools

Site Tools


course_outline

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
course_outline [2018/01/03 01:59] jonathancourse_outline [2018/01/03 02:03] (current) jonathan
Line 10: Line 10:
   * [[https://youtu.be/aROKK2HKhog|Video Presentation]]   * [[https://youtu.be/aROKK2HKhog|Video Presentation]]
  
-<html> 
-<iframe width="560" height="315" src="https://www.youtube.com/embed/videoseries?list=PLGoQo5eIwvcAmPWkiWVhzWR-Op-mYN9JK" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen></iframe> 
-</html> 
  
-<html> 
-  
-    <div id="player"></div> 
- 
-    <script> 
-      // 2. This code loads the IFrame Player API code asynchronously. 
-      var tag = document.createElement('script'); 
- 
-      tag.src = "https://www.youtube.com/iframe_api"; 
-      var firstScriptTag = document.getElementsByTagName('script')[0]; 
-      firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); 
- 
-      // 3. This function creates an <iframe> (and YouTube player) 
-      //    after the API code downloads. 
-      var player; 
-      function onYouTubeIframeAPIReady() { 
-        player = new YT.Player('player', { 
-          height: '390', 
-          width: '640', 
-          videoId: 'PLGoQo5eIwvcAmPWkiWVhzWR-Op-mYN9JK', 
-          events: { 
-            'onReady': onPlayerReady, 
-            'onStateChange': onPlayerStateChange 
-          } 
-        }); 
-      } 
- 
-      // 4. The API will call this function when the video player is ready. 
-      function onPlayerReady(event) { 
-        event.target.playVideo(); 
-      } 
-      // 5. The API calls this function when the player's state changes. 
-      //    The function indicates that when playing a video (state=1), 
-      //    the player should play for six seconds and then stop. 
-      var done = false; 
-      function onPlayerStateChange(event) { 
-        if (event.data == YT.PlayerState.PLAYING && !done) { 
-          setTimeout(stopVideo, 0); 
-          done = true; 
-        } 
-      } 
-       
-      function stopVideo() { 
-        player.stopVideo(); 
-      } 
-    </script> 
-</html> 
  
 ===== Reactive systems: Bridge ===== ===== Reactive systems: Bridge =====
course_outline.1514944794.txt.gz · Last modified: 2018/01/03 01:59 by jonathan