AMP
  • websites

amp-kaltura-player

Introduction

Use the amp-kaltura extension to embed Kaltura videos in your AMP HTML files.

Setup

Import the amp-kaltura-player component in the header.

<script async custom-element="amp-kaltura-player" src="https://cdn.ampproject.org/v0/amp-kaltura-player-0.1.js"></script>

Basic usage

Embed videos hosted on Kaltura via the data-uiconf, data-partner, and data-entryid attributes. We recommend using the responsive layout for videos.

The data-param-* attributes will be added as key/value pairs to the query string in the video player's embed iframe, and can be used to pass ad parameters to Kaltura's video player, for example.

<amp-kaltura-player data-uiconf="33502051"
  data-partner="1281471"
  data-entryid="1_3ts1ms9c"
  data-param-streamerType="auto"
  layout="responsive"
  width="720"
  height="480"></amp-kaltura-player>
Need further explanation?

If the explanations on this page don't cover all of your questions feel free to reach out to other AMP users to discuss your exact use case.

Go to Stack Overflow
An unexplained feature?

The AMP project strongly encourages your participation and contributions! We hope you'll become an ongoing participant in our open source community but we also welcome one-off contributions for the issues you're particularly passionate about.

Edit sample on GitHub