Disconnect the external publisher holding a slot
POST/api/mediasrc/takeover
Kicks the non-Insight publisher currently holding one source slot through the mediamtx control API. Readers of that stream are disconnected too. Afterwards the slot reports its persisted state again and can be assigned and started. Idempotent when the publisher already left. Returns 409 while Insight pulls a network stream into the slot; use /api/mediasrc/stop first.
Request
Responses
- 200
- 400
- 404
- 409
- 502
Publisher disconnected.
Missing or invalid request data.
The requested resource was not found.
The resource's current state does not permit the requested operation, for example a slot that is not running, is held by an external publisher, or was stopped, reassigned, reset or unassigned while its FPS rendition was being prepared (start it again).
The mediamtx control API is unreachable or refused the kick.