USBIsochronousInTransferResult
Khả dụng hạn chế
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.
Note: This feature is available in Web Workers.
Giao diện USBIsochronousInTransferResult của WebUSB API cung cấp kết quả từ lệnh gọi phương thức isochronousTransferIn() của giao diện USBDevice. Nó đại diện cho kết quả từ yêu cầu truyền dữ liệu từ thiết bị USB đến USB host.
Hàm khởi tạo
USBIsochronousInTransferResult()Thử nghiệm-
Tạo một đối tượng
USBIsochronousInTransferResultmới với các trườngpacketsvàdatađược cung cấp.
Thuộc tính phiên bản
USBIsochronousInTransferResult.dataRead only Thử nghiệm-
Trả về đối tượng
DataViewchứa dữ liệu nhận được từ thiết bị. Đây là dữ liệu kết hợp từ tất cả các gói tin. Xem các đối tượngDataViewriêng lẻ trong mảngpacketsđể biết phần của bộ đệm này chứa dữ liệu từ mỗi gói tin. USBIsochronousInTransferResult.packetsRead only Thử nghiệm-
Trả về một mảng đối tượng
USBIsochronousInTransferPacketchứa kết quả của mỗi yêu cầu nhận gói tin từ thiết bị.
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| WebUSB API> # usbisochronousintransferresult> |