as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
Interface that content provider applications implement to handle commands from Amazon’s content personalization service to fetch playback event data.

Methods

getPlaybackEventsSince()

getPlaybackEventsSince(sinceTimestamp: Date, playbackEventsProvider: IPlaybackEventsProvider): 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.
最后修改于 2026年8月25日