as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support

IPlaybackEventsHandler

Interface that content provider applications implement to handle commands from Amazon's content personalization service to fetch playback event data.

Methods

getPlaybackEventsSince()

getPlaybackEventsSince(sinceTimestamp, playbackEventsProvider): void

Handles the GetPlaybackEventsSince command. GetPlaybackEventsSince command requests that all playback exit events that have occured since a given time be sent in response. Implementation of this API can use the IPlaybackEventsProvider.addPlaybackEventChunk(...) method to provide playback event data in chunks. When IPlaybackEventsProvider.commit() is invoked all of the provided playback event data will be committed to Amazon's content personalization cloud service.

Parameters

sinceTimestamp

Date

The time for how far back to share playback events from.

playbackEventsProvider

IPlaybackEventsProvider

A IPlaybackEventsProvider object to send responses with.

Returns

void


Last updated: Sep 30, 2025