I am using audio player directive to play the audio. When I say 'stop' I just stop the audio now but I am trying to figure out a way for the user to come out of the app using some command since 'stop' would not boot him out of the skill. Any idea how to accomplish that?
if (intent.name === "AMAZON.StopIntent") { this.stop(); index=0; // Stops the playback of Audio SimplePlayer.prototype.stop = function () { var response = { version: "1.0", response: { shouldEndSession: false, directives: [ { type: "AudioPlayer.Stop" } ] } }; this.context.succeed(response); };