Home / Docs Center / Device API Reference / Configuring the STUN Hole-Punching Relay Server

Configuring the STUN Hole-Punching Relay Server

Device API Reference · Intercom Camera WebRTC API

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

[TOC]

Brief Description
  • Set the TURN hole punching and relay server
Request URL
  • /xsw/api/p2p/webrtcIce
Request Method
  • POST
Parameters
Parameter Name Required Type Description
select No string Empty means setting. Not empty means parameter query
stun_url No string STUN server address
turn_url No string TURN server address
username No string TURN server user name
password No string TURN server password
Return Example
  {
    "code": 0,
    "msg": "",
    "stun_url": "stun:stun.l.google.com:19302",
    "turn_url": "turn:192.168.0.101:3478",
    "username": "",
    "password": ""
  }
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.