Skip to content
Discussion options

You must be logged in to vote

You can keep MuxPlayer and add a React download link alongside it; you don't need to rebuild the player. The downloadable file is a separate static rendition, so first create a highest rendition on the backend and wait for that rendition to be ready. The static MP4 guide documents this flow and the download URL.

For a public playback ID, a small starting point is:

import MuxPlayer from "@mux/mux-player-react";

export function Video({ playbackId, renditionName, downloadReady }) {
  // renditionName comes from the ready static rendition's files[].name.
  const url = `https://stream.mux.com/${playbackId}/${renditionName}?download=video`;
  return (
    <>
      <MuxPlayer playbackId={playba…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@javierarams
Comment options

Answer selected by javierarams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants