What goes on your website?
Your site hosts the page with the player, the MOAP loader and its companion assets, and a small configuration file named moap.json. Your videos and posters can live on your own server or CDN. MEDIARAZZI delivers the player engine from its update service, so you don’t upload its PHP endpoints or release files to your site.
Register the domain and copy the key
- Sign in to MOAP Overview. If you start in VAST Ad Manager, choose Your Players in the sidebar or switch to MOAP Video Player.
- In MOAP, open My Players. Enter a descriptive player name and the hostname where the player page will open. Use
video.example.comfor a page athttps://video.example.com/watch/. Use the website hostname, not the CDN hostname. - Choose Generate Free Activation Key. Copy the key for this installation and put it in the
licensefield of itsmoap.json. A different installation can have its own key and ad settings, even on the same domain.
Connect the page and add your first video
Keep the loader and companion assets from your installation together. This example assumes the page and moap.json are in the same directory, with the loader under assets/. An external site should explicitly point data-engine-host to MEDIARAZZI.
<div id="moap-root"
data-config="./moap.json"
data-engine-host="https://mediarazzi.com/player/"
aria-label="Video player"></div>
<script src="./assets/moap-loader.js" defer></script>
Replace the placeholder key and URLs with your own. This example starts with ads off so you can verify content playback first.
{
"license": "MOAP-YOUR-KEY-HERE",
"updateChannel": "stable",
"advertising": false,
"playlist": [
{
"videoId": "first-video",
"title": "My first video",
"src": "https://video.example.com/media/first-video.mp4",
"poster": "https://video.example.com/media/first-video.jpg"
}
]
}
Use a playable MP4 or an HLS .m3u8 URL for src. The optional poster is the thumbnail shown before playback. Add more objects to the playlist array for more videos. Relative media URLs resolve from the player page, not from the MEDIARAZZI engine host. For cross-origin HLS, the media host must permit the player site to request the manifest and segments.
Check the installation
Open the installed page over HTTPS, confirm the poster appears, and press Play. If activation fails, compare the exact page hostname with the registered domain and confirm the full key was copied. If the player says the playlist is empty or can’t find its configuration, check the data-config path and make sure the file contains valid JSON without trailing commas.
When you’re ready for ads, see Assign VAST ads in My Players. For reporting, see Read and export MOAP playback statistics.