as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

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: Oct 02, 2025