Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary Properties #108

Closed
benfrancis opened this issue Oct 3, 2018 · 1 comment · Fixed by #119
Closed

Binary Properties #108

benfrancis opened this issue Oct 3, 2018 · 1 comment · Fixed by #119
Assignees

Comments

@benfrancis
Copy link
Member

As a developer I want to provide a URL to a binary file or stream as the value of a property so that I can have properties like images, audio or video.

This could be achieved by making the href of a property into a links array as per #73, similar to what was suggested in w3c/wot-thing-description#223 (comment) e.g.

...
  "properties": {
    "image": {
      "links" [{
        "href": "/things/lamp/properties/image",
        "mediaType": "image/jpeg"
      }]
    },
  }
...

This could also allow for other binary encoded data as per #41

@jaller94
Copy link

jaller94 commented Oct 5, 2018

I guess the array could be useful to provide the same content in various file formats and resolutions. I assume that this will most often be used for video, audio and image content.
A video/image could have an visual_size or resolution (which might be ambiguous as audio can also have a resolution). For a video/audio a bitrate might be more interesting.

It’s great to consider that this would also work for documents which could offer various file formats like HTML, application/pdf, application/rdf+xml or application/vnd.oasis.opendocument.textapplication/vnd.oasis.opendocument.text. This could be useful for a WebThing that generates reports or fancy log files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants