FLOE-171: Create a central model structure that is more sensible to integrators

Metadata

Source
FLOE-171
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Cindy Li
Reporter
Cindy Li
Created
2014-01-24T09:46:22.884-0500
Updated
2014-08-05T08:45:52.352-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Metadata

Description

Using the current model structure used by the video metada panel as an example:

{
url: "",
highContrast: false,
signLanguage: false,
flashing: "unknown",
audio: "available",
keywords: [],
captions: []
}

This structure doesn't make much sense to integrators. A more easy-to-understand structure would apply to the metadata output such as:

{
url: "http://url",
metadata: {
accessModel: [], // An array of any of these values: "visual", "audio"
accessibilityHazard: [], // An array of one of these values: "flashing" or "noFlashing"
accessibilityFeature: [], // An array of any of these values: "highContrast", "signLanguage", "captions"
keywords: [], // An array of any of these values: "dialogue", "soundtrack", "sound effect"
},
captions: [{
src: "http://captionUrl",
language: ".."
},
....
]
}

So, a central model with this structure can be exposed to integrators and use model transformation to transform it to the models required by media panels.

Comments