Some checks failed
Build and Deploy / package-dist (push) Has been cancelled
Build and Deploy / deploy-itch (push) Has been cancelled
Build and Deploy / deploy-gitea (push) Has been cancelled
Build and Deploy / build-linux (push) Has been cancelled
Build and Deploy / build-windows (CLANG64) (push) Has been cancelled
27 lines
814 B
JavaScript
27 lines
814 B
JavaScript
var camera = this
|
|
|
|
camera.list[prosperon.DOC] = `Return an array of available camera device IDs.
|
|
|
|
:return: An array of camera IDs, or undefined if no cameras are available.
|
|
`
|
|
|
|
camera.open[prosperon.DOC] = `Open a camera device with the given ID.
|
|
|
|
:param id: The camera ID to open.
|
|
:return: A camera object on success, or throws an error if the camera cannot be opened.
|
|
`
|
|
|
|
camera.name[prosperon.DOC] = `Return the name of the camera with the given ID.
|
|
|
|
:param id: The camera ID to query.
|
|
:return: A string with the camera's name, or throws an error if the name cannot be retrieved.
|
|
`
|
|
|
|
camera.position[prosperon.DOC] = `Return the physical position of the camera with the given ID.
|
|
|
|
:param id: The camera ID to query.
|
|
:return: A string indicating the camera position ("unknown", "front", or "back").
|
|
`
|
|
|
|
return this;
|