@japofc/baileys - v2.4.7
    Preparing search index...

    Class ActiveCall

    A live (or recently ended) voice/video call. Emits 'audio' with PCM chunks.

    Hierarchy

    • EventEmitter
      • ActiveCall
    Index
    • Parameters

      • callId: string
      • engine: any
      • durationMs: number
      • Optionalmeta: Record<string, any>

      Returns ActiveCall

    startedAt: number
    state: any
    • Parameters

      • pnUserJid: string
      • OptionallidUserJid: string
      • OptionaldeviceJids: string[]

      Returns any

    • Parameters

      • filePath: string
      • Optionalopts: Record<string, any>

      Returns any

    • Parameters

      • peerJid: string

      Returns any

    • Swap what the call is playing WITHOUT hanging up: a file path/URL, { data: Buffer, ext }, a lavfi: graph, or "silence". Returns true when a live decoder was swapped, false when audio capture has not started yet (the source is remembered for when it does).

      Parameters

      • source: string | { data: Buffer; ext?: string }

      Returns boolean