Stop a camera preview
POST/api/peripherals/cameras/preview/:session_id/stop
Closes the stream and stops the pipeline on the board by its process id (TERM, then KILL after 2 s), which releases the camera. Returns the stopped session, or null when that session already ended, so a repeated stop succeeds; an older session id never stops a newer session. The stream is closed first, so a pipeline whose kill command fails still ends at its next write; the session is kept for a retry only when the stream's own cleanup has not already released it.
Request
Responses
- 200
- 409
- 502
- 504
The stopped session, or null.
The board or a command on it could not be used. code identifies the failure and hint names the recovery step.
The board or a command on it could not be used. code identifies the failure and hint names the recovery step.
The board or a command on it could not be used. code identifies the failure and hint names the recovery step.