Permissions-Policy: chỉ thị display-capture

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.

Chỉ thị display-capture của header HTTP Permissions-Policy kiểm soát việc tài liệu có được phép sử dụng Screen Capture API, tức là getDisplayMedia() để chụp nội dung màn hình hay không.

Nếu display-capture bị vô hiệu hóa trong một tài liệu, tài liệu đó sẽ không thể khởi tạo chụp màn hình thông qua getDisplayMedia() và sẽ ném ngoại lệ NotAllowedError.

Cú pháp

http
Permissions-Policy: display-capture=<allowlist>;
<allowlist>

Danh sách các nguồn gốc được cấp quyền sử dụng tính năng. Xem Permissions-Policy > Cú pháp để biết thêm chi tiết.

Chính sách mặc định

Danh sách cho phép mặc định cho display-captureself.

Thông số kỹ thuật

Specification
Screen Capture
# permissions-policy-integration

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

Xem thêm