sendDeviceMeta
info
Added in Scrcpy 1.22
- Type:
boolean - Default value:
true
Controls whether the server should send device meta at the start of the video stream.
See complete video stream format for details.
Changelog
v1.15
This option didn't exist. Device meta is always sent at the start of the video stream which includes:
- Device name (64-byte null-terminated string)
- Initial video width (2 bytes)
- Initial video height (2 bytes)
v1.22
Option added. When false, device meta is not sent at the start of the video stream.
v2.0
This option only controls whether device name is sent.
Whether the initial video width and height are sent is controlled by sendCodecMeta option.
Related options
sendFrameMeta: Send presentation timestamps so that the client may record properlysendCodecMeta: Controls codec metadata (v2.0 ~ v3.3.4)sendStreamMeta: Controls stream metadata (v4.0+)
Example
import { ScrcpyOptions1_22 } from "@yume-chan/scrcpy";
const options = new ScrcpyOptions1_22({
sendDeviceMeta: false, // Disable sending device metadata
});