wiki/howto/tutorials/sailinganalytics/tracking-race-player.md
... ...
@@ -1,6 +1,32 @@
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 2
3
-<a href="https://vimeo.com/786236240" target="_blank" style="display: inline-block; padding: 8px 16px; background-color: #007ACC; color: white; text-decoration: none; border-radius: 4px;">▶ Watch the Video</a>
3
+<div id="player"></div>
4
+
5
+<script>
6
+ // Load YouTube IFrame API script
7
+ var tag = document.createElement('script');
8
+ tag.src = "https://www.youtube.com/iframe_api";
9
+ var firstScriptTag = document.getElementsByTagName('script')[0];
10
+ firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
11
+
12
+ // Create YouTube player when API ready
13
+ var player;
14
+ function onYouTubeIframeAPIReady() {
15
+ player = new YT.Player('player', {
16
+ height: '360',
17
+ width: '640',
18
+ videoId: 'A2Z86lYV7CE',
19
+ events: {
20
+ 'onReady': onPlayerReady,
21
+ }
22
+ });
23
+ }
24
+
25
+ function onPlayerReady(event) {
26
+ // Autoplay video
27
+ event.target.playVideo();
28
+ }
29
+</script>
4 30
5 31
6 32