With its powerful race replay capabilities, the TackTracker Cloud's web player is a great drawcard to any site. You can embed the web player into your site by following these instructions. This way you can not only provide results but race replays too!
These instructions assume you have already published the races of interest and that they are available for viewing from tacktracker.com/cloud. There are two ways you can provide access to these races from your site:
You can find tune the embedded player to look and behave in the way you want. For example, you can:
To embed the player, create an <iframe>, specifying a source URL as detailed below.
The iframe should specify the width and height - e.g:
<iframe src="https://tacktracker.com/cloud/races/embed/1348706884/700/600" scrolling="no" frameborder="0" style="width:700px; height:620px;" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen></iframe>
There are two embed URL's, one for embedding Regatta races, the other for Home page races. The formats are:
URL | Purpose |
---|---|
https://tacktracker.com/cloud/races/embed/raceid | Embed a home page race. |
https://tacktracker.com/cloud/races/embedlive/raceid | Embed a home page race - and automatically switch to live replay mode, removing the "Go Live" button. |
https://tacktracker.com/cloud/regattas/embed/rgid/rcnum | Embed a regatta race. |
https://tacktracker.com/cloud/regattas/embedlive/rgid/rcnum | Embed a regatta race - and automatically switch to live replay mode, removing the "Go Live" button. |
You may optionally specify additional query parameters to your URL to customize behavior. For example:
https://tacktracker.com/cloud/races/embed/raceid?playmode=auto
Parameter | Values | Description |
---|---|---|
playmode | free, track, auto | Default play mode. |
namemode | name, details | Default track name to display. (Use namemode=details to pre-select name2). |
startutc | Start playing race from specified UTC in format: yyyy-dd-mmTHH:MM:SSZ | |
leaderboard | true, false | Show the leaderboard on startup |
showtitle | true, false | Show the race title in the player |
It is also possible to specify optional parameters positionally in the URL. This approach is now deprecated.
Number | Parameter | Description | |
---|---|---|---|
1 | raceid | Race ID | Required |
1 | rgid/rcnum | Regatta ID and race number | Required |
2 | width | No longer used | Specify 0 as a placeholder. |
3 | height | No longer used | Specify 0 as a placeholder. |
4 | showpane | No longer used | Specify 0 as a placeholder. |
5 | startutc | Start playing race from specified UTC in format: yyyy-dd-mmTHH:MM:SSZ | Optional. Specify 0 as a placeholder. |
6 | track | 0 = normal, 1 = track the current boat | Optional, default 0 |