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?
๐
๐
๐คฉ