Custom

If you want more control over the player's placement, you can specify a target HTML element by passing the target parameter during player initialization.

<script async defer src="https://c.ampliftglobal.com/player/ampliftplayer.js" onload="(new AmpliftPlayer({target: '#target_id'})).init()"></script>

Replace #target_id with the ID of the HTML element where you want the player to be injected or use another selector to provide single HTML element.

Example

Here's a complete example of how to integrate the Amplift AI Audio Player into your HTML:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Your Web App</title>
</head>
<body>
    <h1>Your Content Here</h1>
    <div id="customPlayerContainer">
        <!-- The player will be injected here -->
    </div>
    <script async defer src="https://c.ampliftglobal.com/player/ampliftplayer.js" onload="(new AmpliftPlayer({target: '#customPlayerContainer'})).init()"></script>
</body>
</html>

Last updated