Skip to main content
Version: next

sendCodecMeta

info

Added in Scrcpy 2.0

  • Type: boolean
  • Default value: true

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

By default, sending codec metadata is enabled in Scrcpy, meaning the server sends codec configuration data needed for proper decoding. Adding this option with a value of true has no effect since this is the default behavior. Only setting this option to false will disable sending codec metadata.

Example

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

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