Перейти до основного вмісту

Pull an existing RTSP stream into a slot

POST 

/api/mediasrc/pull

Points the slot's mediamtx path at a stream that already exists on the network (an IP camera, another server) so applications read it at rtsp://…/srcN. The packets are forwarded unchanged. Only rtsp:// and rtsps:// URLs are accepted; credentials go in username/password or in the URL and never appear in any response. Insight checks the camera once before configuring the pull: rejected credentials answer 400 with reason: "auth_failed" and nothing is configured; an unreachable camera still configures the pull (status unreachable) and the slot recovers by itself. The pull is session-only and needs the loopback mediamtx control API.

Request​

Responses​

The slot, now pulled.