Open jronallo opened 8 years ago
My first reaction is to ask which of this information can't be determined after the load event on an HTML5 video? This won't load the whole video but just enough to get metadata to determine the mimetype, duration, video height/width, etc. https://www.w3.org/2010/05/video/mediaevents.html
I can see the need though to get this information via a JSON API as other clients than a browser might need to know this in advance of taking some other actions.
The key question here is whether we need an info.json
similar to the Image API. I think @jronallo's comment that this is likely useful for a client to know what to do is a driver, but also other use cases might demand an info.json
(or equivalent), e.g. specifying thumbnail (#16), rights information (#22 and see http://iiif.io/api/image/2.1/#rights-and-licensing-properties), and related services (see http://iiif.io/api/image/2.1/#related-services).
There may also be a need to get at properties of a video that HTML5 cannot provide, e.g. I believe that mediaWidth/mediaHeight provide intrinsic display width/height in CSS pixels but not actual pixel dimensions and aspect ratio, which may differ due to non-square pixels, anamorphic video, etc.
Noted on AV call that there are cases when the correct rendering dimensions and the source dimensions are different. Would need both of them to correctly display the resource.
Would the info.json for a video also have to take into account different streams and describe each separately as well as separate information about the format (container).
Description
Describe media type, aspect ratio and resolution. e.g. if it's 4/3 or 16/9 aspect ratio
Variation(s)
Proposed Solutions
Properties on info.json.
Additional Background
Source: BL workshop notes Interest: 100%