question

newuser-0c613431-f6d9-4ef2-8508-64bde0330f19 avatar image

smarthome > CameraStreamController > expirationTime is not working

Hello.

I need your help.

We are in the process of developing "smart home skills" to stream video through "Echo Show".

The video plays well.

However, I would like to automatically stop playback on an "ehco show" after a certain amount of time.

The response to a request for "Alexa.CameraStreamController" is:

{
    "event": {
        "payload": {
            "cameraStreams": [
                {
                    "protocol": "RTSP",
                    "expirationTime": "2018-02-23T09:58:32.29Z",
                    "authorizationType": "NONE",
                    "idleTimeoutSeconds": 30,
                    "audioCodec": "G711",
                    "uri": "rtsp://streamurl",
                    "resolution": {
                        "width": 1280,
                        "height": 720
                    },
                    "videoCodec": "H264"
                }
            ]
        },
        "header": {
            "payloadVersion": "3",
            "namespace": "Alexa.CameraStreamController",
            "name": "Response",
            "messageId": "......",
            "correlationToken": "........"
        }
    }
}

I have determined that "expirationTime" is the end time of the video.However, streaming continues to play even after the time has elapsed!"expirationTime" was setted in UTC time as required by "

https://developer.amazon.com/docs/device-apis/alexa-camerastreamcontroller.html#response".

The description of "expirationTime" is :

A date in ISO 8601 format indicating the expiration time of the stream. Should be specified in UTC.

please. help me.

I am waiting for your help.Thank you. Have a nice day :)

alexa smart homecamera
3 comments
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Are you still seeing this issue?

0 Likes 0 ·

I am facing this issue. The stream never expires even if the expiration time is specified in the response.


{ "event":{ "header":{

"namespace":"Alexa.CameraStreamController",
"name":"Response",
"payloadVersion":"3",
"messageId":"bc957c01-6710-4320-b20e-16ebb58a6133",
"correlationToken":"A"

},

"endpoint":{

"endpointId":"010945000AE2709C9CSEWGSAVG"

},

"payload":{ "cameraStreams":[

{

"uri":"rtsp stream uri",

"expirationTime":"2020-07-20T06:08:57Z",

"idleTimeoutSeconds":120,

"protocol":"RTSP",

"resolution":{

"width":1280,
"height":720

},

"authorizationType":"BASIC",

"videoCodec":"H264",

"audioCodec":"AAC"

}

],

"imageUri":""

}}}

0 Likes 0 ·
Amazon_Bernardo Bezerra avatar image Amazon_Bernardo Bezerra ♦♦ newuser-10467a45-f326-4d82-8f69-ab58dda6b4ea ·

Hello and thank you for your message.

I understand that you have also created a case using our Contact Us page and that a colleague has already replied to you.

Once a solution is found, please share it here for the rest of the community.

Regards,
Barry

0 Likes 0 ·

0 Answers