USBIsochronousInTransferPacket

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 USBIsochronousInTransferPacket của WebUSB API là một phần của phản hồi từ lệnh gọi phương thức isochronousTransferIn() của giao diện USBDevice. Nó đại diện cho trạng thái của một gói tin riêng lẻ từ yêu cầu truyền dữ liệu từ thiết bị USB đến USB host qua endpoint isochronous.

Hàm khởi tạo

USBIsochronousInTransferPacket() Thử nghiệm

Tạo một đối tượng USBIsochronousInTransferPacket mới với các trường statusdata được cung cấp.

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

USBIsochronousInTransferPacket.data Read only Read only Thử nghiệm

Trả về đối tượng DataView chứa dữ liệu nhận được từ thiết bị USB trong gói tin này, nếu có.

USBIsochronousInTransferPacket.status Read only Read only Thử nghiệm

Trả về trạng thái của yêu cầu truyền, một trong:

  • "ok" - Truyền thành công.
  • "stall" - Thiết bị chỉ ra lỗi bằng cách tạo điều kiện stall trên endpoint. Stall trên endpoint isochronous không cần được xóa.
  • "babble" - Thiết bị đáp lại với nhiều dữ liệu hơn dự kiến.

Thông số kỹ thuật

Thông số kỹ thuật
WebUSB API
# usbisochronousintransferpacket

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