Opened 10 years ago

Last modified 10 years ago

#1073 new defect

'audio' objectType is not accepted.

Reported by: JanKusanagi Owned by:
Priority: minor Milestone:
Component: programming Keywords: api, audio, media types
Cc: Parent Tickets:

Description (last modified by Jessica Tallon)

Trying to post an 'audio' object returns:

HTTP 400: Bad Request.

{
    "error": "Unknown object type 'audio'."
}

Change History (2)

comment:1 by Jessica Tallon, 10 years ago

Description: modified (diff)
Keywords: media types added; objectTypes uploads video removed
Summary: [API] 'audio' and 'video' objectType's are not accepted.'audio' objectType is not accepted.

comment:2 by Jessica Tallon, 10 years ago

Since I will likely be implementing 'audio' and 'video' types separately I have created a separate issue for video and have changed the description of this ticket to be specific to audio. The video ticket is #1076.

Just some extra information on this issue, it's not simply limited to uploading, all relevant endpoints should be prepared to deal with audio in accordance to the spec. I believe from looking at the Activity Streams 1.0 spec the audio object would look something like this:

{
    "id": "https://gmg.site.tld/api/audio/someid",
    "objectType": "audio",
    "displayName": "Title of this audio",
    "embedCode": "<html><to><embed></embed></to></html>",
    "stream": {
        "url": "https://gmg.site.tld/path/to/audio.ogg",
    },
    "author": {
        "id": "acct:someone@gmg.site.tld",
        ...
    },
    "url": "https://gmg.site.tld/html/version/for/users/click"
}
Note: See TracTickets for help on using tickets.