- Introduction to Video
- Stream video files
- Start live streaming
- Build real-time video experiences
- Make API requests
- Play your videos
- Enable static MP4 renditions
- Download for offline editing
- Embed videos for social media
- Listen for webhooks
- Secure video playback
- Create clips from your videos
- Get images from a video
- Create timeline hover previews
- Adjust audio levels
- Add watermarks to your videos
- Add subtitles to your videos
- Minimize processing time
- Upload files directly
- Autoplay your videos
- Synchronize video playback
- Integrate with your CMS
Integrate with Prepr
Prepr works with Mux out of the box. No configuration needed.
In this guide:
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.
- Create a free Prepr account before you get started.
- Log in to the Prepr dashboard and navigate to Publish > Media Library.
- Click Upload Asset
- Drag in one or more video files or click Browse files to select the files.
- Click Add 1 item to add the item(s) to your library.
Once your video(s) have been uploaded, you can add them to a content model. Follow the steps below to do this.
- Navigate to Settings > Content Models.
- Create a new model or open one of your existing models.
- Click Add field and select Assets.
- Enter a Display name.
- Deselect all options except Video in the Settings tab.
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:
- The HLS streaming url is returned by default.
- You may use the
res
option to request MP4 versions inhigh
,medium
and/orlow
quality to support legacy browsers that do not support HLS. - You may query the duration of video content using the
duration
option. - The cover image can be requested using the 'cover' field. It is adjustable using
width
,height
andtime
arguments.
{ Posts { items { videos { hls : url mp4High : url(res:"high") mp4Medium : url(res:"medium") mp4Low : url(res:"low") duration cover } } } }