Embedding AMP

Embedding AMP in an HTML page is a three-step process:

  1. Include the AMP JS script

  2. Provide embed-time configuration (set the media to play and configure any features)

  3. Instantiate the AMP object, associating it with a div on the page. The player will take on the div’s size in a responsive manner.

		<script src="amp.js"></script>
		<div id="amp"></div>
			var config = {
				autoplay: true,
				media: {
					src: "http://projects.mediadev.edgesuite.net/customers/akamai/video/VfE.mp4",
					type: "video/mp4"

			var amp = akamai.amp.AMP.create("amp", config);
Last modified: Mar/2023, AMP Support.