USBIsochronousOutTransferPacket
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 USBIsochronousOutTransferPacket của WebUSB API là một phần của phản hồi từ lệnh gọi phương thức isochronousTransferOut() 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ừ USB host đến thiết bị USB qua endpoint isochronous.
Hàm khởi tạo
USBIsochronousOutTransferPacket()Thử nghiệm-
Tạo một đối tượng
USBIsochronousOutTransferPacketmới với các trườngstatusvàbytesWrittenđược cung cấp.
Thuộc tính phiên bản
USBIsochronousOutTransferPacket.bytesWrittenRead only Thử nghiệm-
Trả về số byte từ gói tin đã được gửi đến thiết bị.
USBIsochronousOutTransferPacket.statusRead 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.
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| WebUSB API> # usbisochronousouttransferpacket> |