我最近得到了亚马逊回声秀。我能够成功播放视频文件。我想捕获用户何时按下(在触摸屏上)暂停/播放/上一个/下一个,以便我能够基于用户触摸的时间添加另一个视频文件。我实现了播放控制器接口,并向Alexa注册了playBackHandlers。
const playBackHandlers =
{
'PlaybackController.NextCommandIssued' : function() {
//Your skill can respond to NextCommandIssued with any AudioPlayer directive.
console.log("INSIDE NEXT");
},
'PlaybackController.PauseCommandIssued' : function() {
//Your skill can respond to PauseCommandIssued with any AudioPlayer directive.
console.log("INSIDE PAUSE");
},
'PlaybackController.PlayCommandIssued' : function() {
//Your skill can respond to PlayCommandIssued with any AudioPlayer directive.
},
'PlaybackController.PreviousCommandIssued' : function() {
//Your skill can respond to PreviousCommandIssued with any AudioPlayer directive.
},
'System.ExceptionEncountered' : function() {
//Your skill cannot return a response to System.ExceptionEncountered.
}
};
没有一次,使用回显显示上的触摸按钮后,我根本看不到任何日志语句。任何帮助,将不胜感激 。预先感谢!