amp-jwplayer

Edit on Github
Open in Playground

Introduction

Embed jwplayer videos in your AMP HTML files.

Setup

Import the amp-jwplayer component in the header.

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

Basic Usage

Embed jwplayer videos via the data-media-id and data-player-id attributes. We recommend using the responsive layout for videos.

Example

<amp-jwplayer data-media-id="BZ6tc0gy"
  data-player-id="uoIbMPm3"
  layout="responsive"
  width="16"
  height="9">
</amp-jwplayer>

It's also possible to embed a jwplayer video playlist via the data-playlist-id and data-player-id attributes.

Example

<amp-jwplayer data-playlist-id="482jsTAr"
  data-player-id="uoIbMPm3"
  layout="responsive"
  width="16"
  height="9">
</amp-jwplayer>