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 of webp
  • another Source with a format of jpeg

Example B

A Media Item with a kind of video might have three Sources:

  • one Source with a height of 1080px
  • one Source with a height of 480px
  • one Source with format of jpeg and label of thumbnail

Example C

A Media Item with a kind of video might have:

  • one Source with a format of mp4
  • another Source with a format of jpeg
  • one Intelligence with a kind of speech
  • another Intelligence with a kind of objects
  • one Track with a kind of subtitles

Additional documentation is currently being added.

Please check back soon or get in touch to ask any questions or book a free pairing session.