@u4/adbkit
    Preparing search index...

    Interface ScrcpyEvents

    enforce EventEmitter typing

    interface ScrcpyEvents {
        codec: (data: { codec: string; height: number; width: number }) => void;
        config: (data: H264Configuration) => void;
        disconnect: () => void;
        error: (error: Error) => void;
        frame: (data: VideoStreamFramePacket) => void;
        raw: (data: Buffer) => void;
    }
    Index
    codec: (data: { codec: string; height: number; width: number }) => void

    since Scrcpy v2.0 an extra event is emitted with the codec, width and height

    config: (data: H264Configuration) => void
    disconnect: () => void
    error: (error: Error) => void
    frame: (data: VideoStreamFramePacket) => void
    raw: (data: Buffer) => void