You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Segment can keep track of events occurring on any number of video players on your
14
-
page. **You must include the `session_id`propert with every video event you want to send to the Youbora so Segment can keep track of which player to attribute the events to.**
14
+
page. **You must include the `session_id`property with every video event you want to send to Youbora so Segment can keep track of which player to attribute the events to.**
15
15
16
16
17
17
### Video Playback Started
18
18
19
-
When a user starts playback of a video, use the [Video Playback Started](/docs/connections/spec/video/#playback-events) event. Segment maps the properties
20
-
from the Video Playback Started event to the following Youbora video metadata
21
-
fields:
22
-
23
-
<table>
24
-
<tr>
25
-
<td>**Youbora Parameter**</td>
26
-
<td>**Segment Property**</td>
27
-
<td>**Data Type**</td>
28
-
</tr>
29
-
<tr>
30
-
<td>'content.isLive'</td>
31
-
<td>`properties.livestream`</td>
32
-
<td>Boolean</td>
33
-
</tr>
34
-
<tr>
35
-
<td>Resource</td>
36
-
<td>`context.page.url`</td>
37
-
<td>String</td>
38
-
</tr>
39
-
</table>
19
+
When a user starts playback of a video, use the [Video Playback Started](/docs/connections/spec/video/#playback-events) event. Segment maps the properties from the Video Playback Started event to the following Youbora video metadata fields:
20
+
21
+
| Youbora Parameter | Segment Property | Data Type |
When the video content actually begins playing, use the [Video Content
44
-
Started](/docs/connections/spec/video/#content-events) event. Segment maps the properties
45
-
from the Video Playback Started event to the following Youbora video metadata
46
-
fields:
47
-
48
-
<table>
49
-
<tr>
50
-
<td>**Youbora Parameter**</td>
51
-
<td>**Segment Property**</td>
52
-
<td>**Data Type**</td>
53
-
</tr>
54
-
<tr>
55
-
<td>'content.title'</td>
56
-
<td>`properties.title`</td>
57
-
<td>String</td>
58
-
</tr>
59
-
<tr>
60
-
<td>'content.title2'</td>
61
-
<td>`properties.program`</td>
62
-
<td>String</td>
63
-
</tr>
64
-
<tr>
65
-
<td>'content.duration'</td>
66
-
<td>`properties.total_length`</td>
67
-
<td>Integer</td>
68
-
</tr>
69
-
<tr>
70
-
<td>'content.metadata.content_id'</td>
71
-
<td>`properties.asset_id`</td>
72
-
<td>String</td>
73
-
</tr>
74
-
<tr>
75
-
<td>'content.metadata.genre'</td>
76
-
<td>`properties.genre`</td>
77
-
<td>String</td>
78
-
</tr>
79
-
<tr>
80
-
<td>'content.metadata.owner'</td>
81
-
<td>`properties.publisher`</td>
82
-
<td>String</td>
83
-
</tr>
84
-
</table>
85
-
86
-
Using the difference in time between when `Video Playback Started` and `Video
87
-
Content Started`, Youbora will calculate the join time for you.
29
+
When the video content actually begins playing, use the [Video Content Started](/docs/connections/spec/video/#content-events) event. Segment maps the properties from the Video Playback Started event to the following Youbora video metadata fields:
30
+
31
+
| Youbora Parameter | Segment Property | Data Type |
When a user pauses or resumes playback of a video, use the [Video Playback Paused](/docs/connections/spec/video/#playback-events) and [Video Playback Resumed](/docs/connections/spec/video/#playback-events) events.
94
45
95
-
If the user pauses during an ad, be sure to fill the
96
-
`properties.ad_asset_id` field from our spec for **both** calls, as we use its
46
+
If the user pauses during an ad, fill the `properties.ad_asset_id` field from the spec for **both** calls, as Segment uses its
97
47
presence to determine whether the pause is occurring during an ad or not.
calculates the duration of the seek but if you would prefer to provide this
119
-
value yourself you can pass it as the integration-specific option `duration`.
65
+
When the video content actually begins playing, use the [Video Playback Seek Started](/docs/connections/spec/video/#playback-events) and [Video Playback Seek Completed](/docs/connections/spec/video/#playback-events) events. Youbora internally calculates the duration of the seek but if you would prefer to provide this value yourself you can pass it as the integration-specific option `duration`.
120
66
121
67
**Example**
122
68
@@ -133,10 +79,6 @@ Playback Buffer Started](/docs/connections/spec/video/#playback-events) and [Vid
133
79
Buffer Completed](/docs/connections/spec/video/#playback-events) events. Segment maps the
134
80
properties from these events to the following Youbora video metadata fields:
135
81
136
-
If the buffer occurs during an ad, be sure to fill the
137
-
`properties.ad_asset_id` field from our spec for **both** calls, as we use its
138
-
presence to determine whether the buffer is occurring during an ad or not.
To track the completion of an ad, use the [Video Ad Completed](/docs/connections/spec/video/#ad-events) event.
191
126
192
127
**Example**
193
128
@@ -214,13 +149,9 @@ Youbora supports automatic video tracking for the following video players:
214
149
- ThePlatform
215
150
- VideoJS
216
151
217
-
However, note that relying solely on Youbora auto tracking will not send your
218
-
video events to Segment downstream destinations, including a raw data warehouse.
219
-
To track data to downstream tools, we recommend either manually implementing all
220
-
video player events or manually implementing all events alongside Youbora. If
221
-
you employ the latter method, you should indicate explicitly that your Segment
222
-
events should not flow to Youbora (because they've already been auto-tracked by
223
-
the Youbora library).
152
+
However, relying solely on Youbora auto tracking will not send your video events to Segment downstream destinations, including a raw data warehouse. To track data to downstream tools, Segment recommends either manually implementing all video player events or manually implementing all events alongside Youbora.
153
+
154
+
If you employ the latter method, you should indicate explicitly that your Segment events should not flow to Youbora (because they've already been auto-tracked by the Youbora library).
In the `options` field, you can pass options the same way you would [pass them natively to Youbora](http://developer.nicepeopleatwork.com/plugins/general/setting-youbora-options/){:target="_blank"}.
274
202
275
-
See the below example for what a working implementation looks like:
203
+
The following example shows a working implementation:
0 commit comments