new RoonApiImage(core)
Roon API Image Service
Parameters:
Name | Type | Description |
---|---|---|
core |
Core | The Core providing the service |
- Source:
Methods
get_image(image_key, optionsopt, cb)
Roon API services provide image_key properties. This translates the image_key into an actual image. It is also possible to issue image requests directly using HTTP if that is more convenient: http://IP:PORT/api/image/image_key?scale=XXX&width=XXX&height=XXX&format=XXX The rules for parameter types and optional/required follow the same as for the options parameter.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
image_key |
string | the key, as given by another api | |||||||||||||||||||||
options |
object |
<optional> |
Properties
|
||||||||||||||||||||
cb |
RoonApiImage~imageresultcallback | Called on success or error |
- Source:
Type Definitions
imageresultcallback(error, content_type, image)
Parameters:
Name | Type | Description |
---|---|---|
error |
string | false | an error code or false if no error |
content_type |
string | the MIME type of the image data |
image |
Buffer | the image data |
- Source: