BrowserCaptureMediaStreamTrack
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.
Giao diện BrowserCaptureMediaStreamTrack của Screen Capture API biểu diễn một track video đơn lẻ. Nó mở rộng lớp MediaStreamTrack bằng các phương thức để giới hạn phần của một luồng tự quay (ví dụ: màn hình hoặc cửa sổ của người dùng) được ghi lại.
Instance methods
clone()Experimental-
Trả về một bản sao không bị cắt và không bị giới hạn của
BrowserCaptureMediaStreamTrackgốc. cropTo()Experimental-
Cắt một luồng tự quay thành vùng mà một phần tử DOM được chỉ định được hiển thị.
restrictTo()Experimental-
Giới hạn một luồng tự quay vào một phần tử DOM cụ thể.
Examples
Xem Using the Element Capture and Region Capture APIs để biết mã ví dụ trong ngữ cảnh thực tế.
Specifications
| Specification |
|---|
| Region Capture> # browser-capture-media-stream-track> |