Это контроллер:
const controller = {
[...]
stop(handlerInput) {
console.log("stop");
return handlerInput.responseBuilder
.addAudioPlayerStopDirective()
.getResponse();
},
[...]
};
Это AudioPlayerEventHandler
const AudioPlayerEventHandler = {
canHandle(handlerInput) {
console.log("AudioPlayerEventHandler cH");
return handlerInput.requestEnvelope.request.type.startsWith('AudioPlayer.');
},
async handle(handlerInput) {
console.log("AudioPlayerEventHandler");
[...]
};
В журнале есть:
20:52:20 2020-04-22T20:52:20.345Z fc49f7b3-9078-4814-a5ed-cc32a46f021f INFO stop
20:52:20 2020-04-22T20:52:20.345Z fc49f7b3-9078-4814-a5ed-cc32a46f021f INFO SavePersistentAttributesResponseInterceptor
20:52:20 END RequestId: fc49f7b3-9078-4814-a5ed-cc32a46f021f
Почему после остановки не отправлен запрос AudioPlayer.PlaybackStopped?