Skip to main content
Version: 1.0.0

Upgrade from 0.0.24

This page lists changes from version 0.0.24 in Scrcpy-related packages.

For changes in other packages, see this page.

@yume-chan/adb-scrcpy

Fixed a bug that AdbScrcpyOptionsX_XX doesn't automatically switch to forward tunnel mode when reverse tunnel is not supported.

Now it handles errors and stream closures when parsing the device message stream. The errors and closures will be propagated to ScrcpyOptionsX_XX#clipboard and ScrcpyOptionsX_XX#uHidOutput (docs to be added).

@yume-chan/aoa

All options to HidMouse.serializeInputReport are now optional.

0.0.241.0.0
const report = HidMouse.serializeInputReport({
movementX: 10,
movementY: -5,
buttons: 0,
scrollX: 0,
scrollY: 0,
});
const report = HidMouse.serializeInputReport({
movementX: 10,
movementY: -5,
});

@yume-chan/scrcpy

The whole package has been completely rewritten. Options classes now shares code using ES modules, instead of inheritance, so if you only import one options class, only the related code will be included in the output bundle.

Removed ScrcpyOptionsX_XX#defaults. Now there is only ScrcpyOptionsX_XX.Defaults.

Added ScrcpyOptionsX_XX.Init type aliases for the options types.

Set ScrcpyOptionsX_XX#clipboard to undefined if it's disabled by options, and allows ScrcpyOptionsX_XX#clipboard#cancel to ignore future messages.

const options = new ScrcpyOptions3_0({
control: false,
});
options.clipboard; // undefined
const options = new ScrcpyOptions3_0({
clipboardAutosync: false,
});
options.clipboard; // undefined
const options = new ScrcpyOptions3_0();
await options.clipboard.cancel();

Support Scrcpy UHID messages via ScrcpyOptionsX_XX#uHidOutput (from v2.4), ScrcpyControlMessageSerializer#uHidCreate (from v2.4), ScrcpyControlMessageSerializer#uHidInput (from v2.4) and ScrcpyControlMessageSerializer#uHidDestroy (from v2.7).

Support all new options up to Scrcpy 3.0.

@yume-chan/scrcpy-decoder-tinyh264

Support rendering to OffscreenCanvas. Thanks @oott123 for submitting #643!

@yume-chan/scrcpy-decoder-webcodecs

Added multiple rendering modes and rendering to OffscreenCanvas.

Fixed rendering H.265 videos having incorrect size on Microsoft Edge on Windows.