videosphere
    Preparing search index...
    • POST(
          req: NextRequest,
      ): Promise<NextResponse<{ error: string }> | NextResponse<{ ok: boolean }>>

      Authenticates an optional MediaMTX publish attempt using the owner's stream key. MediaMTX sends JSON including path (e.g. live/<streamKey>). On successful publish auth, starts the RTSP→PCM puller when RTSP base is configured so OBS audio reaches the same enqueueOwnerPcm path as browser Add audio.

      Parameters

      • req: NextRequest

        Incoming auth hook request.

      Returns Promise<NextResponse<{ error: string }> | NextResponse<{ ok: boolean }>>

      200 when allowed; 401 when denied.