Skip to content

Commit d721aae

Browse files
committed
Adds video attention time tracking function to videos service
1 parent f8812ec commit d721aae

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.changeset/lovely-words-rule.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@guardian/bridget": minor
3+
---
4+
5+
Adds video attention time tracking function to videos service

thrift/native.thrift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,14 @@ service Gallery {
186186
service Videos {
187187
void insertVideos(1:list<VideoSlot> videoSlots),
188188
void updateVideos(1:list<VideoSlot> videoSlots),
189+
/*
190+
* This method is used to submit media tracking events for videos from the web layer.
191+
* */
189192
void sendVideoEvent(1:VideoEvent videoEvent),
193+
/*
194+
* This method is used to submit component attention time tracking updates for videos from the web layer.
195+
* */
196+
void sendVideoAttentionTime(1:map<string, i64> componentAttentionMs),
190197
/**
191198
* This method is used by the web layer to instruct the native layer to activate or deactivate fullscreen mode
192199
* This is currently only required for Android as the fullscreen control on the YouTube player in Android webviews is a no-op

0 commit comments

Comments
 (0)