Home / Docs Center / Device API Reference / Configuring the STUN Hole-Punching Relay Server
Configuring the STUN Hole-Punching Relay Server
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.