RTCRtpTransceiver: stopped property

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

Note: Thay vì dùng thuộc tính đã bị loại bỏ này, hãy so sánh currentDirection với "stopped".

Thuộc tính chỉ đọc stopped trên giao diện RTCRtpTransceiver cho biết sender và receiver đi kèm với transceiver đã bị dừng hay chưa.

Transceiver bị dừng nếu phương thức stop() đã được gọi hoặc nếu một thay đổi đối với local description hay remote description khiến transceiver bị dừng vì một lý do nào đó.

Giá trị

Một giá trị Boolean là true nếu sender của transceiver sẽ không còn gửi dữ liệu nữa, và receiver của nó cũng sẽ không còn nhận dữ liệu nữa. Nếu một trong hai hoặc cả hai vẫn đang hoạt động, kết quả là false.

Tiêu chuẩn

Tính năng này không thuộc bất kỳ tiêu chuẩn hiện hành nào. Nó không còn nằm trong lộ trình trở thành một tiêu chuẩn.

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

Xem thêm