0

我已经创建了一个智能家居技能来测试我的智能相机与我的亚马逊回声显示集成。我创建了一个lambda函数。当我在AWS Lambda控制台上测试它时,它工作正常。下面是我使用测试亚马逊回声显示没有响应新的智能家居技能

{ 
    "header": { 
    "namespace": "Alexa.ConnectedHome.Query", 
    "name": "RetrieveCameraStreamUriRequest", 
    "payloadVersion": "2", 
    "messageId": "ABC-123-DEF-456" 
    }, 
    "payload": { 
    "accessToken": "[OAuth Token here]", 
    "directedId": "[directed customer id]", 
    "appliance": { 
     "applianceId": "[Device ID for the camera]", 
     "additionalApplianceDetails": { 
     "extraDetail1": "optionalDetailForSkillAdapterToReferenceThisDevice", 
     "extraDetail2": "There can be multiple entries", 
     "extraDetail3": "but they should only be used for reference purposes.", 
     "extraDetail4": "Not a suitable place to maintain current device state" 
     } 
    } 
    } 
} 

我得到的响应请求主体

{ 
    "header": { 
    "messageId": "38A28869-DD5E-48CE-BBE5-A4DB78CECB28", 
    "name": "RetrieveCameraStreamUriResponse", 
    "namespace": "Alexa.ConnectedHome.Query", 
    "payloadVersion": "2" 
    }, 
    "payload": { 
    "uri": { 
     "value": "rtsp://xyz.com/playback/9a78b68f68ae4538a1cf" 
    }, 
    "imageUri": { 
     "value": "https://www.google.co.in/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" 
    } 
    } 
} 

但是,当我测试这与我的Alexa的回波显示它说:“相机没有响应”

任何人都可以在这里提出任何建议吗?

+0

您回应的MESSAGEID是从请求的不同? – taoxiaopang

回答

0

我需要在URL中指定端口443 ...问题是

"value":"rtsp://xyz.com/playback/9a78b68f68ae4538a1cf". 

的医生说只,交叉工程TCP端口443(用于RTP和RTSP)。

这现在工作

{ 
    "header": { 
    "messageId": "38A28869-DD5E-48CE-BBE5-A4DB78CECB28", 
    "name": "RetrieveCameraStreamUriResponse", 
    "namespace": "Alexa.ConnectedHome.Query", 
    "payloadVersion": "2" 
    }, 
    "payload": { 
    "uri": { 
     "value": "rtsp://xyz.com:443/playback/9a78b68f68ae4538a1cf" 
    }, 
    "imageUri": { 
     "value": "https://www.google.co.in/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" 
    } 
}