Ask AI

Mux plugin for live captions

Add captions to a Mux player

If youโ€™ve created your project in CaptionHub using the Mux CMS integration, you can use the plugin to add captions to the Mux player.

<mux-player id="my-player" playback-id="YOUR_PLAYBACK_ID"></mux-player>

<script src="https://cdn.captionhub.com/live/mux-plugin-1.21.js"></script>

<script>
  CaptionHubLiveForMux.init({
    video: document.querySelector('#my-player'),
  });
</script>

You can get the versioned script URL and captions URL from the โ€œPlugin integrationโ€ tab on a live project page.

Note that the embed code works for all players, as weโ€™ll look up the captions by the Mux playback ID in the player.

ย 
Did this answer your question?
๐Ÿ˜ž
๐Ÿ˜
๐Ÿคฉ