Skip to main content
Version: next

sendCodecMeta

info

Added in Scrcpy 2.0

danger

Deprecated in Scrcpy 4.0

Use sendStreamMeta instead.

  • Type: boolean
  • Default value: true

Controls whether codec metadata should be sent at the start of the video and audio streams.

Changelog

v2.0

When true, server will send codec metadata after device name (controlled by sendDeviceMeta option). Codec metadata includes:

  • Codec ID (4 bytes)
  • Initial video width (2 bytes)
  • Initial video height (2 bytes)

v4.0

Example

import { ScrcpyOptions2_0 } from "@yume-chan/scrcpy";

const options = new ScrcpyOptions2_0({
sendCodecMeta: false, // Disable sending codec metadata
});