amp-connatix-player
Displays a cloud-hosted Connatix Player.
Required Script | <script async custom-element="amp-connatix-player" src="https://cdn.ampproject.org/v0/amp-connatix-player-0.1.js"></script> |
Supported Layouts | fill, fixed, fixed-height, flex-item, nodisplay, responsive |
Example
The width
and height
attributes determine the aspect ratio of the player embedded in responsive layouts.
Example:
<amp-connatix-player data-player-id="03ef71d8-0941-4bff-94f2-74ca3580b497" layout="responsive" width="16" height="9" > </amp-connatix-player>
Attributes
data-player-id | Connatix player id. This can be found at the Video Players section in the Connatix management dashboard. (Required) |
data-media-id | Connatix media id. This represents the unique ID of any media in your Library. This can be found at the Library section in the Connatix management dashboard. (Optional) |
common attributes | This element includes common attributes extended to AMP components. |
Validation
See amp-connatix-player rules in the AMP validator specification.
You've read this document a dozen times but it doesn't really cover all of your questions? Maybe other people felt the same: reach out to them on Stack Overflow.
Go to Stack Overflow Found a bug or missing a 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.
Go to GitHub