Skip to content

Commit d4edfdc

Browse files
authored
update video spec
A new playback event "Video Playback Exited" was added to some destinations in May but it is not reflected in the Video specs. This change aims to add that to the spec and inform on when to us it. - You can find more details on internal paper-doc "Video Spec Event Proposal for Video Playback Exited". Example: https://github.com/segment-integrations/analytics-android-integration-nielsen-dcr/blob/master/src/main/java/com/segment/analytics/android/integrations/nielsendcr/NielsenDCRIntegration.java#L474
1 parent b512ae3 commit d4edfdc

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

src/connections/spec/video.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,52 @@ When playback is complete and only when the session is finished.
538538
}
539539
```
540540

541+
#### Video Playback Exited
542+
When user navigates away from a playback/stream.
543+
{% comment %} api-example '{
544+
"action": "track",
545+
"event": "Video Playback Exited",
546+
"userId": "userId",
547+
"properties": {
548+
"session_id": "12345",
549+
"content_asset_id": "0129370",
550+
"content_pod_id": "segA",
551+
"position": 392,
552+
"total_length": 392,
553+
"bitrate": 100,
554+
"framerate": 29.00,
555+
"video_player": "youtube",
556+
"sound": 55,
557+
"full_screen": false,
558+
"ad_enabled": false,
559+
"quality": "hd1080",
560+
"livestream": false
561+
}
562+
}'}}} {% endcomment %}
563+
564+
```js
565+
{
566+
"action": "track",
567+
"event": "Video Playback Exited",
568+
"userId": "userId",
569+
"properties": {
570+
"session_id": "12345",
571+
"content_asset_id": "0129370",
572+
"content_pod_id": "segA",
573+
"position": 392,
574+
"total_length": 392,
575+
"bitrate": 100,
576+
"framerate": 29.00,
577+
"video_player": "youtube",
578+
"sound": 55,
579+
"full_screen": false,
580+
"ad_enabled": false,
581+
"quality": "hd1080",
582+
"livestream": false
583+
}
584+
}
585+
```
586+
541587
---
542588

543589
## Content

0 commit comments

Comments
 (0)