wiki/howto/tutorials/sailinganalytics/tracking-race-player.md
... ...
@@ -1,24 +1,15 @@
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 3
4
-<head>
5
-
6
- <meta charset="UTF-8" />
7
- <title>YouTube IFrame API Example</title>
8
-</head>
9
-<body>
10 4
11
- <div id="player"></div>
12 5
13
- <script>
14
- // 1. Load the IFrame Player API code asynchronously.
15
- var tag = document.createElement('script');
6
+<div id="player"></div>
7
+<script>
8
+var tag = document.createElement('script');
16 9
tag.src = "https://www.youtube.com/iframe_api";
17 10
var firstScriptTag = document.getElementsByTagName('script')[0];
18 11
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
19
-
20
- // 2. Create the YouTube player after the API code downloads.
21
- var player;
12
+var player;
22 13
function onYouTubeIframeAPIReady() {
23 14
player = new YT.Player('player', {
24 15
height: '360',
... ...
@@ -29,12 +20,6 @@ The video below gives an excellent overview of the main functionality of the SAP
29 20
}
30 21
});
31 22
}
23
+</script>
24
+
32 25
33
- // 3. Autoplay when ready
34
- function onPlayerReady(event) {
35
- event.target.playVideo();
36
- }
37
- </script>
38
-
39
-</body>
40
-</html>
... ...
\ No newline at end of file