2017-08-29 139 views
1

我想在我的自定义技能中使用VideoApp.Launch指令。因此,我将视频应用的技能信息全球字段设置为true,并为视频播放器添加了所需的意图。Alexa VideoApp.Launch指令 - 目标设备不支持指定的指令

后来我开始用example from this page

来测试它之前,我加入了视频指令ALEXA很简单返回的输出内容。但是,添加此目录后,我收到错误:目标设备不支持指定的指令。我找不到解决此问题的任何文档。有没有我错过的设备设置?

更新:我尝试了Display.RenderTemplate以及相同的结果。错误:目标设备不支持指定的指令。我为音频,渲染模板和视频设置了所需的全局字段为true。

我查了一下到目前为止:msg.context.System.device.supportedInterfaces

"supportedInterfaces": { 
     "AudioPlayer": {} 
    } 

我使用的回声。为什么这里没有其他接口可用?我如何使它们可用?

我的代码和错误消息如下。在Alexa的历史

/** 
    * 
    * main() will be invoked when you Run This Action 
    * 
    * @param Cloud Functions actions accept a single parameter, which must be a JSON object. 
    * 
    * @return The output of this action, which must be a JSON object. 
    * 
    */ 
var main = function(msg) { 
    var response = { 
    version: "1.0", 
    response: { 
     outputSpeech: { 
     type: "PlainText", 
     text: "" + 'JSON.stringify(msg.request.intent)' //'.slots.questionContent.value' 
     }, 
     "directives": [ 
     { 
     "type": "VideoApp.Launch", 
     "videoItem": 
     { 
      "source": "https://www.example.com/video/sample-video-1.mp4", 
      "metadata": { 
       "title": "Title for Sample Video", 
       "subtitle": "Secondary Title for Sample Video"    
      } 
     } 
     }  
    ], 
    "reprompt": null 
    }, "sessionAttributes": null 

    }; 
    return { 
    statusCode: 200, 
    headers: { "Content-Type": "application/json" }, 
    body: new Buffer(JSON.stringify(response)).toString("base64") 
    }; 
}; 

错误消息:

Error Message

回答