Home / Docs Center / Device API Reference / webrtcStream RelayGet SDP

webrtcStream RelayGet SDP

Device API Reference · Encoder WebRTC Playback

Project: Device API Documentation (New) | page_id: 303

Brief Description:

  • Get SDP for WebRTC stream relay

Request URL:
- /xsw/api/webrtc/relay

Request Method:
- POST

URL Parameters:

Parameter Required Type Description
streamPath Yes string Stream name, for example channel 1 is hlsram/live0

Body Parameters:

Parameter Required Type Description
sdp Yes string offer sdp

Response Example

  {
        "sdp": "xxx",
        "type": "answer",
        "relay": false,
        "subs": 1,
  }

Response Parameter Description

Parameter Type Description
code int Status code. 0 means success, others mean failure
msg string Failure information
sdp string answer sdp
type string Fixed string answer
relay bool Whether stream relay is supported
subs int Number of clients currently playing

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.