メインコンテンツまでスキップ

Reset all source assignments

POST 

/api/mediasrc/reset

Returns source management to its initial state by stopping every source and rewriting the persisted slot configuration with empty assignments. This is destructive configuration cleanup; use stop-all instead when assignments should be retained.

Webcam slots are published by a browser, so Insight asks MediaMTX to close those sessions. A slot whose publisher could not be confirmed closed keeps its webcam marking and is listed in unconfirmed_webcams, so a later stop can still identify it and retry — clearing it would lose the only record that a camera may still be live. A slot another caller reassigned while this request was releasing publishers is left as it now is and listed in changed_sources. A caller that already closed its own publishers may name them in released_webcams as {index, session} objects; a bare index is not a claim and that slot is released the normal way.

Request​

Responses​

Every source was stopped and default empty assignments were written.