Capabilities Reference : VideoStream NO Video Codec and Audio Codec Information

Hi SmartThings Team,
When I refer the document : Capabilities Reference | SmartThings Developers
, and I want to use the capability of VideoStream, I did not see any information about video codec and audio codec.
I want to know :
Q1. Does smartThings support the rtsp streaming?
Q2. What kind of video codec and audio codec support in here ?
Q3. Does any example about the videostream capability?

Thanks a lot.

Welcome to the SmartThings Community, @VSaaS_Tutk!

Can you share more details about your integration, please? For example, the capabilities supported by the device, the purpose of the integration, etc.

Hi Nayelyz,
Thanks for your reply.
I want to use a witness spotlight cam from leedarson to connect to smarthThings.
This device’s capabilities is as follows:

  1. 2K QHD
  2. 2-Way Audio
  3. 400lm Spotlight
  4. Alarm Alert
  5. Human Detection
  6. SpotlightNight Vision
  7. 2T2R
  8. IP65
  9. Smoke/CO Alarm and Sound Detection
    10.Glass Break Detection

Ok, up to now, the video plugin works for the capabilities of VideoStream and MotionSensor combined through:

  • The already published device profiles, which are:
    • c1ca6938-e152-4a21-a349-d89df268f126 for RSTP
    • d1fddebd-137b-47fa-a05a-6e8329de19e0 for webRTC
  • You can use different integrations, like:
    • ST Schema > for cloud to cloud connections
    • Edge drivers > for Hub-connected devices (Zigbee, Z-Wave and LAN). Here, you would need to include the same metadata (VID and manufacturerName)

To start the stream you need to define the startStream command to send an event with the following information:

live_video = {
     "InHomeURL": "STREAMING_URL",
     "OutHomeURL": "STREAMING_URL"
 }

//Command used in ST Schema
addState('main', 'st.videoStream', 'stream', live_video)

To stop the stream you need to define the stopStream command to send an event with the following:

live_video = {
      "InHomeURL": "",
      "OutHomeURL": ""
}

//Command used in ST Schema
addState('main', 'st.videoStream', 'stream', live_video)

This is how the Detail View of the Device would look like:

2 Likes

Hi Nayelyz,
Thanks your replay.
How can I get the document about the both of information from smartThings?

  • The already published device profiles, which are:
    • c1ca6938-e152-4a21-a349-d89df268f126 for RSTP
    • d1fddebd-137b-47fa-a05a-6e8329de19e0 for webRTC

Do you mean the details of the device profiles?

You can use the CLI or the API’s endpoint of deviceprofiles. Eg. Using the CLI:

smartthings deviceprofiles id [-j or -y]

This way, you can see which capabilities it uses and its metadata.