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?
😞
😐
🤩