954bc65149c6ede10395fed11e789ad406071f87
wiki/howto/tutorials/sailinganalytics/tracking-race-player.md
| ... | ... | @@ -1,40 +1,6 @@ |
| 1 | 1 | The video below gives an excellent overview of the main functionality of the SAP Race Player which is accessible on a per-race basis via the "Races/Tracking" Tab of a regatta. |
| 2 | - |
|
| 3 | - |
|
| 4 | - |
|
| 5 | - |
|
| 6 | - <div id="player"></div> |
|
| 7 | - |
|
| 8 | - <script> |
|
| 9 | - console.log('Loading YouTube IFrame API'); |
|
| 10 | - |
|
| 11 | - var tag = document.createElement('script'); |
|
| 12 | - tag.src = "https://www.youtube.com/iframe_api"; |
|
| 13 | - var firstScriptTag = document.getElementsByTagName('script')[0]; |
|
| 14 | - firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); |
|
| 15 | - |
|
| 16 | - var player; |
|
| 17 | - function onYouTubeIframeAPIReady() { |
|
| 18 | - console.log('YouTube API Ready, creating player...'); |
|
| 19 | - player = new YT.Player('player', { |
|
| 20 | - height: '360', |
|
| 21 | - width: '640', |
|
| 22 | - videoId: 'A2Z86lYV7CE', |
|
| 23 | - playerVars: { |
|
| 24 | - autoplay: 1, |
|
| 25 | - mute: 1 |
|
| 26 | - }, |
|
| 27 | - events: { |
|
| 28 | - 'onReady': function(event) { |
|
| 29 | - console.log('Player ready, starting video'); |
|
| 30 | - event.target.playVideo(); |
|
| 31 | - }, |
|
| 32 | - 'onError': function(e) { |
|
| 33 | - console.error('Player error:', e.data); |
|
| 34 | - } |
|
| 35 | - } |
|
| 36 | - }); |
|
| 37 | - } |
|
| 38 | - </script> |
|
| 2 | +Here is a helpful video: |
|
| 3 | + |
|
| 4 | +<iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen></iframe> |
|
| 39 | 5 | |
| 40 | 6 |