在Alexa视频技能中,如何停止addVideoAppLaunchDirective? iam使用addVideoAppLaunchDirective播放视频

时间:2020-03-03 04:54:38

标签: alexa alexa-skills-kit alexa-skill alexa-voice-service

我具有使用addVideoAppLaunchDirective()播放的Alexa技能。我的问题是,当我使用停止意图停止技能时,Alexa仅以我给的文本作为响应,然后视频继续播放。出于停止的目的,我想完全停止视频流。

我在停止意图期间执行的代码如下

handle(handlerInput) {
        const speakOutput = 'Goodbye!';
        return handlerInput.responseBuilder

            .speak(speakOutput)
            //.withShouldEndSession(true)
            //.stop()
            .getResponse();
    }

0 个答案:

没有答案