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 your video(s) have been uploaded, you can add them to a content model. Follow the steps below to do this.
Now you can query the URL(s) 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 you created. It has various options:
res
option to request MP4 versions in high
, medium
and/or low
quality to support legacy browsers that do not support HLS.duration
option.width
, height
and time
arguments.{
Posts {
items {
videos {
hls : url
mp4High : url(res:"high")
mp4Medium : url(res:"medium")
mp4Low : url(res:"low")
duration
cover
}
}
}
}