跳至主要内容

Start one source

POST 

/api/mediasrc/start

Starts streaming the file assigned to one one-based source slot and persists its state as playing. The slot must exist and have a valid assignment. Repeated calls are safe for normal control flows, but callers should inspect /api/mediasrc when they need to distinguish newly started from already-running sources.

A webcam slot is published by the browser rather than by Insight, so for those slots this endpoint only confirms the stream: it returns 409 until MediaMTX reports the WHIP stream as publishing.

Request​

Responses​

Operation completed.