PresentationRequest

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.

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

Đối tượng PresentationRequest được sử dụng để khởi tạo hoặc kết nối lại với một bản trình chiếu được tạo bởi một ngữ cảnh duyệt web điều khiển. Đối tượng PresentationRequest PHẢI được triển khai trong một ngữ cảnh duyệt web điều khiển được cung cấp bởi một user agent điều khiển.

Khi một PresentationRequest được khởi tạo, các urls đã cho PHẢI được sử dụng làm danh sách URL yêu cầu trình chiếu, mỗi URL là một URL trình chiếu có thể dùng cho phiên bản PresentationRequest.

EventTarget PresentationRequest

Hàm khởi tạo

PresentationRequest() Experimental

Tạo một PresentationRequest.

Thuộc tính phiên bản

Không có.

Phương thức phiên bản

PresentationRequest.start() Experimental

Trả về một Promise được giải quyết với PresentationConnection sau khi user agent nhắc người dùng chọn màn hình và cấp quyền sử dụng màn hình đó.

PresentationRequest.reconnect() Experimental

Khi phương thức reconnect(presentationId) được gọi trên một PresentationRequest presentationRequest, user agent PHẢI thực hiện các bước sau để kết nối lại với một bản trình chiếu.

PresentationRequest.getAvailability() Experimental

Khi phương thức getAvailability() được gọi, user agent PHẢI thực hiện các bước được mô tả trong liên kết.

Thông số kỹ thuật

Specification
Presentation API
# interface-presentationrequest

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