Sources
# Sources GET https://api.ittybit.com/sources POST https://api.ittybit.com/sources # Source GET https://api.ittybit.com/sources/:id PATCH https://api.ittybit.com/sources/:id DELETE https://api.ittybit.com/sources/:id
Introduction
A Source is a single variant of the original media. Every Media Item will have at least one Source, which is a direct copy of the original media.
Media Items can contain any number of additional Sources, enabling you to store multiple variants of the original media for different devices and use cases, together in a single Media Item resource.
Examples
-
You may initially upload a 4k .mov video. From there you can generate other sources using Tasks and generate a 1080p version, a 720p version for quicker loading as well as other file formats such as .mp4.
-
Alternatively, an element can have multiple sources for different contexts:
<video> <source src="/video.mp4" type="video/mp4" /> <source src="/video.mov" type="video/quicktime" /> </video>
Example A
A Media Item with a kind
of image
might have two Sources:
- one Source with a
format
ofwebp
- another Source with a
format
ofjpeg
Example B
A Media Item with a kind
of video
might have three Sources:
- one Source with a
height
of1080px
- one Source with a
height
of480px
- one Source with
format
ofjpeg
andlabel
ofthumbnail
Example C
A Media Item with a kind
of video
might have:
- one Source with a
format
ofmp4
- another Source with a
format
ofjpeg
- one Intelligence with a
kind
ofspeech
- another Intelligence with a
kind
ofobjects
- one Track with a
kind
ofsubtitles
Additional documentation is currently being added.
Please check back soon or get in touch to ask any questions or book a free pairing session.