Prepr is a headless content management system created for adaptive websites. Prepr works with Mux out of the box. No configuration needed.
Mux is enabled for every new Prepr account by default. You can upload your videos to Prepr, add them to a content model and query their URLs to display them on your website. Follow the steps below to get started.
Once uploaded, the videos are ready to be used in content items.
The livestream asset is now ready to be used in content items with an asset field.
Once your video(s) have been uploaded, you can add them to a content item. Follow the steps below to do this.
Now you can query the URLs or playback IDs of your videos to embed them on your website.
To learn how to play video content on your website, please follow these instructions provided by Mux.
Your query could look something like the example below. In this example, Posts
is the name of your content model and videos
is the name of the assets field. It has various options:
url
field.playback_id
field.res
option to request MP4 versions in high, medium and/or low quality to support legacy browsers that do not support HLS.duration
option.cover
field. It is adjustable using width, height, animated, and time arguments.{
Posts {
items {
videos {
hls: url
playback_id
mp4High: url(res: "high")
mp4Medium: url(res: "medium")
mp4Low: url(res: "low")
duration
cover
}
}
}
}
By default Prepr uses the plus quality level, MP4 support is enabled on all accounts. This option will create Static Renditions for the Asset and will make MP4 files available for download to client devices using the url
field.
While editing an asset from the Media page, content editors can easily upload their own captions file (supported formats are .vtt and .srt) by clicking the + Add subtitles link. Take a look at Add subtitles/captions to videos for more details.