Opened 10 years ago
Last modified 10 years ago
#1076 new enhancement
videos are not supported in the API — at Version 1
Reported by: | Jessica Tallon | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | programming | Keywords: | api, media types, video |
Cc: | Parent Tickets: |
Description (last modified by )
You should be able to upload and interact with videos like you can with images now. There is support for this in the Activity Streams 1.0 specification, if I have understood this correctly we will want to produce an API object which looks something like:
{ "id": "https://gmg.site.tld/api/video/someid", "objectType": "video", "displayName": "Title of this video", "embedCode": "<html><to><embed></embed></to></html>", "stream": { "url": "https://gmg.site.tld/path/to/video.ogv", }, "author": { "id": "acct:someone@gmg.site.tld", ... }, "url": "https://gmg.site.tld/html/version/for/users/click" }
Pump.io does have a model to store a video which is here. This notably in addition to the base attributes all objects share (id, objectType, etc.) it also has:
- ID
- attachments
- embedCode
- stream