Join MDN and developers like you at Mozilla's View Source conference, November 2-4 in Portland, Oregon. Learn more at https://viewsourceconf.org/.

RTCConfiguration

공헌자 숫자: 6명
아직 자원 봉사자들이 한국어로 현재 문서를 번역하지 않았습니다. 가입해서 이 문서가 번역되는 일에 함께 해 주세요!

The RTCConfiguration is passed into the RTCPeerConnection object to initialize the ice server configuration.

Example

var configuration = { iceServers: [{ url: "stun:stun.services.mozilla.com",
                                     username: "louis@mozilla.com", 
                                     credential: "webrtcdemo" }]
}
var pc = new RTCPeerConnection(configuration);

Properties

Name Type Description
iceServers RTCIceServer[] An array of ice server objects

RTCIceServer Properties

Name Type Description
url DOMString A TURN or STUN url for a server to use.
username DOMString An account username (optional)
credential DOMString The password associated with username, if given (optional)

 

문서 태그 및 공헌자

Contributors to this page: eharris, teoli, zmi, Jib, Sheppy, wesj
최종 변경: eharris,