- Notifications
You must be signed in to change notification settings - Fork2
License
googlesamples/tv-video-discovery-samples
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repository contains samples demonstrating how a 3p app can integrate withthe video discovery APIs to send personalized user data to Google.
Caution
The publish APIs are overwrite APIs. Every new publish API call will overwritethe previously published requests for that specificAccountProfile. So,please don't invoke the delete API to clear Continue Watching row becausedelete APIs are reserved for special instances. Instead, just invoke thepublish APIs with empty list in the request body.
Important
Remember to set thesyncAcrossDevices flag totrue (orfalse if userhasn't consented to share the data with Google) in both the publish as well asdelete requests regardless of the PublishReason or DeleteReason.
- Publish Continuation Clusters API: This api should be invoked on thefollowing user events:
- User logs in to the account. If your app supports multiple profiles withinthe same account, then invoke the publish API after the user selects theprofile
- User switches between profiles (only applicable if your app supportsmulti-profile accounts)
- User pauses/stops playing a video. This includes publishing when user hitsthe back button to go back to previous page while the video playback was inprogress. This also includes app exit when the playback is in progress.
- User scrubs the video forwards or backwards
- User completes watching a video. The Continue Watching request should nownot contain the completed video. If the video is part of a series (Movie orTv Show), then add the next video to the Continue Watching request withcorrect
WatchNextType. - User removes an item from your app's Continue Watching row. The ContinueWatching request should now not contain the removed entity.
- Delete Clusters API: Use the correct DeleteReason when sending the deleterequest. Invoke the Delete Clusters API on the following events:
- User logs out of the account
- User revokes consent to share data with Google
- User deletes a profile within an account
- User deletes the entire account
- android-kotlin: Demonstrates how an Android Tv and Android Mobile appwritten in Kotlin can integrate with Engage SDK to publish user personalizeddata.
To report a bug or raise a feature request, please use GitHub issues. Pleasecheck with the contributors if it would be ok for you to work on it. An approvedGitHub issue is required along with your Pull request.
You will also need to sign the CLA. When you raise a PR, the bot will ask you todo that.
Warning
A pull request without an approved issue will be closed without giving anyreason.
This project is intended for demonstration purposes only and is not eligible fortheGoogle Open Source Software Vulnerability Rewards Program.
About
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.