mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-04 18:29:23 +02:00
feat(demo): add web codecs decoder
This commit is contained in:
parent
2e1e1c1b31
commit
9217178222
11 changed files with 447 additions and 197 deletions
|
@ -101,7 +101,7 @@ export class AdbPacketDispatcher extends AutoDisposable {
|
|||
return;
|
||||
}
|
||||
|
||||
this.errorEvent.fire(e);
|
||||
this.errorEvent.fire(e as Error);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -126,10 +126,10 @@ export class AdbPacketDispatcher extends AutoDisposable {
|
|||
private async handleClose(packet: AdbPacket) {
|
||||
// From https://android.googlesource.com/platform/packages/modules/adb/+/65d18e2c1cc48b585811954892311b28a4c3d188/adb.cpp#459
|
||||
/* According to protocol.txt, p->msg.arg0 might be 0 to indicate
|
||||
* a failed OPEN only. However, due to a bug in previous ADB
|
||||
* versions, CLOSE(0, remote-id, "") was also used for normal
|
||||
* CLOSE() operations.
|
||||
*/
|
||||
* a failed OPEN only. However, due to a bug in previous ADB
|
||||
* versions, CLOSE(0, remote-id, "") was also used for normal
|
||||
* CLOSE() operations.
|
||||
*/
|
||||
|
||||
// So don't return if `reject` didn't find a pending socket
|
||||
if (packet.arg0 === 0 &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue