RTCPeerConnection: thuộc tính remoteDescription

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 remoteDescription của giao diện RTCPeerConnection trả về một đối tượng RTCSessionDescription mô tả phiên, bao gồm thông tin cấu hình và phương tiện, cho đầu từ xa của kết nối. Nếu chưa được đặt, thuộc tính này trả về null.

Giá trị

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

Ví dụ

js
const peerConnection = new RTCPeerConnection();

const remoteDescription = peerConnection.remoteDescription;

Thông số kỹ thuật

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

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