Loading .github/workflows/publish.yml +2 −2 Original line number Diff line number Diff line Loading @@ -12,10 +12,10 @@ jobs: id-token: write steps: - name: Checkout uses: actions/checkout@v3 uses: actions/checkout@v4 - name: Setup node uses: actions/setup-node@v3 uses: actions/setup-node@v4 with: node-version: 18 Loading .github/workflows/pull_request.yml +2 −2 Original line number Diff line number Diff line Loading @@ -20,12 +20,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 uses: actions/checkout@v4 with: fetch-depth: 0 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} Loading .github/workflows/test.yml +2 −2 Original line number Diff line number Diff line Loading @@ -20,10 +20,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} Loading libraries/scrcpy-decoder-webcodecs/src/index.ts +5 −2 Original line number Diff line number Diff line Loading @@ -125,7 +125,10 @@ export class WebCodecsVideoDecoder implements ScrcpyVideoDecoder { if (controller) { try { controller.error(e); } catch {} } catch { // ignore // `controller` may already in error state } } else { error = e; } Loading @@ -142,7 +145,7 @@ export class WebCodecsVideoDecoder implements ScrcpyVideoDecoder { controller = _controller; } }, write: (packet, _controller) => { write: (packet) => { if (this.#codec === ScrcpyVideoCodecId.AV1) { if (packet.type === "configuration") { return; Loading Loading
.github/workflows/publish.yml +2 −2 Original line number Diff line number Diff line Loading @@ -12,10 +12,10 @@ jobs: id-token: write steps: - name: Checkout uses: actions/checkout@v3 uses: actions/checkout@v4 - name: Setup node uses: actions/setup-node@v3 uses: actions/setup-node@v4 with: node-version: 18 Loading
.github/workflows/pull_request.yml +2 −2 Original line number Diff line number Diff line Loading @@ -20,12 +20,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 uses: actions/checkout@v4 with: fetch-depth: 0 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} Loading
.github/workflows/test.yml +2 −2 Original line number Diff line number Diff line Loading @@ -20,10 +20,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} Loading
libraries/scrcpy-decoder-webcodecs/src/index.ts +5 −2 Original line number Diff line number Diff line Loading @@ -125,7 +125,10 @@ export class WebCodecsVideoDecoder implements ScrcpyVideoDecoder { if (controller) { try { controller.error(e); } catch {} } catch { // ignore // `controller` may already in error state } } else { error = e; } Loading @@ -142,7 +145,7 @@ export class WebCodecsVideoDecoder implements ScrcpyVideoDecoder { controller = _controller; } }, write: (packet, _controller) => { write: (packet) => { if (this.#codec === ScrcpyVideoCodecId.AV1) { if (packet.type === "configuration") { return; Loading