Embed Player Using Muvi WordPress Media Plugin
Muvi’s WordPress Media Plugin allows you to easily embed the Muvi video/audio player in WordPress pages. To use the Plugin, first, you need to download and install it. After installing the plugin, you need to configure it and then you can use it to insert videos/audios to your WordPress site. Please click here to know how to use the WordPress Media Plugin to embed the player on a website.
Embed Player Using API
You can also embed the Muvi video/audio player on a website using the API. It allows you to embed bulk videos/audios to a website and you can also automate the embed process. That means when you add a video/audio in your Muvi One store, the video/audio will be automatically embedded to the site which you have linked through the API. Please click here to know the APIs you can use to embed the Muvi player.
You can use the media events (such as "Start of Playback", "Pause of Playback" etc.) captured from the embed player to trigger an event or display a message to the end-users. These events are captured only for DRM enabled content.
To capture the events you need to paste the following code inside the web page where you have embedded the player.
<script>
window.addEventListener("message", receiveMessage, false);
function receiveMessage(event)
{
console.log(event.data);
}
</script>
List of events you can capture:
- Start of Playback
- Pause of Playback
- Progress in Playback
- End of Playback
- Seek
- Media Loads
- Buffering
- Change in duration
Related help article: Allow Embed Player on Specific Domains