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 USBIsochronousInTransferResult mới với các trường packetsdata được cung cấp.

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

USBIsochronousInTransferResult.data Read only Thử nghiệm

Trả về đối tượng DataView chứ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ượng DataView riêng lẻ trong mảng packets để biết phần của bộ đệm này chứa dữ liệu từ mỗi gói tin.

USBIsochronousInTransferResult.packets Read only Thử nghiệm

Trả về một mảng đối tượng USBIsochronousInTransferPacket chứ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

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