RTCTransportStats: thuộc tính iceLocalUsernameFragment

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

Thuộc tính iceLocalUsernameFragment của từ điển RTCTransportStats là một chuỗi chỉ ra username fragment cục bộ ("ufrag" hoặc "ice-ufrag") xác định duy nhất phiên tương tác ICE được quản lý bởi transport này.

Username fragment giống nhau được dùng để xác định phiên cho bất kỳ giao tiếp nào với máy chủ STUN.

Nó có cùng giá trị với thuộc tính RTCIceCandidate.usernameFragment cục bộ tương ứng. Nó sẽ thay đổi nếu kết nối được đàm phán lại, ví dụ khi ICE restart, hoặc nếu RTCPeerConnection.setLocalDescription() được gọi.

Giá trị

Một chuỗi chứa username fragment xác định duy nhất phiên ICE đang diễn ra trên transport.

Chuỗi có thể dài tối đa 256 ký tự và không có giá trị mặc định.

Thông số kỹ thuật

Specification
Identifiers for WebRTC's Statistics API
# dom-rtctransportstats-icelocalusernamefragment

Tương thích trình duyệt