Jump to content
C4 Forums | Control4

Local static image in the camera proxy


jackstone

Recommended Posts

Is someone know how to code a camera driver to use a locally stored image as the only static image to display as the camera? The local image could come packed in the c4z file just like we do for custom icons... Someone know how to acheive that?

Link to comment
Share on other sites


11 hours ago, msgreenf said:

I think you can do that by making it a c4z and putting your images in a www directory, and then loading that director:// location instead of a web URL

Thanks for the information, that make sense, but it seems the camera proxy force us to use a complete URL starting by HTTP:// or HTTPS://, not sure about that, but the Lua function UI_REQ.GET_SNAPSHOT_QUERY_STRING seems to generate an XLM string to be returned, and the first part is atomically populated by the camera properties set from the Camera proxy in composer...

Link to comment
Share on other sites

This does not work, but it worked if I use the real IP address of the C4 controller.

Thus leading to another question, is there a C4 API command to get the IP address of the controller? Seems this will be the only way to have this working with zero configuration needed from the user...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.