RTCPeerConnection: thuộc tính localDescription

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2017.

Thuộc tính chỉ đọc localDescription của giao diện RTCPeerConnection trả về một đối tượng RTCSessionDescription mô tả phiên cho đầu cục bộ của kết nối. Nếu chưa được đặt, giá trị trả về là null.

Giá trị

Một đối tượng RTCSessionDescription hoặc null.

Ví dụ

js
const peerConnection = new RTCPeerConnection();

const localDescription = peerConnection.localDescription;

Thông số kỹ thuật

Specification
WebRTC: Real-Time Communication in Browsers
# dom-peerconnection-localdescription

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