HTMLMediaElement: thuộc tính disableRemotePlayback

Limited availability

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

Thuộc tính disableRemotePlayback của giao diện HTMLMediaElement xác định xem phần tử phương tiện có được phép có giao diện người dùng phát lại từ xa hay không.

Giá trị

Giá trị boolean cho biết liệu phần tử phương tiện có thể phát lại từ xa hay không Giao diện người dùng. (false có nghĩa là "không bị tắt", có nghĩa là "đã bật")

Ví dụ

js
const obj = document.createElement("audio");
obj.disableRemotePlayback = true;

Đặc tả kỹ thuật

Specification
Remote Playback API
# the-disableremoteplayback-attribute

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

Xem thêm