This endpoint allows you to update the mp4Support setting of an existing media file using its media ID. You can specify the MP4 support level, such as none, capped_4k, audioOnly, or a combination of audioOnly, capped_4k, in the request payload.
Send a PATCH request to this endpoint, replacing {mediaId} with the media ID.
Provide the desired mp4Support value in the request body.
You receive a response confirming the update, including the media’s updated MP4 support status.
none – MP4 support is disabled for this media.
capped_4k – Generates MP4 renditions up to 4K resolution.
audioOnly – Generates an M4A file that contains only the audio track.
audioOnly,capped_4k – Generates both an audio-only M4A file and MP4 renditions up to 4K resolution.
Suppose you have a video uploaded to the FastPix platform, and you want to allow users to download the video in MP4 format. By setting “mp4Support”: “capped_4k”, the system generates an MP4 rendition of the video up to 4K resolution, making it available for download through the stream URL(https://stream.fastpix.com/{playbackId}/{capped-4k.mp4 | audio.m4a}). If you want users to stream only the audio from the media file, you can set “mp4Support”: “audioOnly”. This provides an audio-only stream URL that allows users to listen to the media without video. By setting “mp4Support”: “audioOnly,capped_4k”, both options are enabled. Users can download the MP4 video and also stream just the audio version of the media.
Related guide: Use MP4 support for offline viewing
FastPix APIs are secured with Basic Authentication. Use your Access Token ID as the username and Secret Key as the password in the Authorization header of each API request.
Activate your FastPix account to generate your API credentials. See the guide here
Determines the type of MP4 support for the media. - none: Disables MP4 support. - capped_4k: Enables MP4 downloads with resolutions up to 4K. - audioOnly: Provides an MP4 stream containing only the audio. - audioOnly,capped_4k: Enables both MP4 video downloads (up to 4K) and an audio-only stream.