Home / Docs Center / Device API Reference / Establish Connection

Establish Connection

Device API Reference · Intercom Camera WebRTC API · Playback

Project: Device Interface Document (New Version) | page_id: 1005

Brief Description:

  • Establish a P2P playback connection and obtain the sessionId

Request URL:
- /xsw/api/p2p/connect

Request Method:
- POST

URL Parameters:

Parameter Name Required Type Description
onlyPlay No number 1 means playback only. Other values default to intercom

Body Parameters:

None

Return Example

  {
        "code": 0,
        "msg": "",
        "sessionId": "",
  }

Return Parameter Description

Parameter Name Type Description
code int Status code. 0 means success, others mean failure
msg string Failure message
sessionId string sessionId, must be carried in subsequent calls

Notes

  • None
Didn't find what you need?Contact us,Talk to our engineers directly.

Request a Quote

Fill in the form and we will get back with a quote and proposal within 1 business day.

Click "Generate inquiry email" to open your mail client with the body pre-filled. If no mail client is configured, click "Copy" and paste it into webmail — recipient: sunshiyang@xstrive.com.