amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Intent to Implement: Delight Player cloud-hosted video embed

Open xymw opened this issue 8 years ago • 5 comments

This proposes an amp-delight-player component for the Delight’s media player and allows publishers to embed responsive players in their AMP pages.

Example

<amp-delight-player
    data-content-id="123abc456def789"
    layout="responsive" width="16" height="9">
</amp-delight-player>

The above markup will create: An iframe with source https://players.delight-vr.com/player/123abc456def789. A placeholder image with source https://players.delight-vr.com/poster/123abc456def789.

The data-content-id attribute is always required. The user can obtain it from the Delight’s wizard.

More info can be found in our forked repo.

xymw avatar Aug 29 '18 17:08 xymw

@xymw Thanks for the ITI. Looks good to me, only suggestion is using amp-delight-player for consistency.

One requirement we have for video players is to implement the video-interface common API which essentially is a postMessage bridge between the component and the iframe to expose methods such as play, pause, seekTo, etc.. and corresponding events. This allows AMP to treat all video players the same and to use it to provide common UX across players such as autoplay, dockable videos, managing playback across players, etc... The interface is fairly straightforward to implement and the reference players mentioned above all implement it as well.

A few good video-players which implement the interface to use as reference are: amp-brid-player, amp-youtube, amp-viqeo-player and amp-dailymotion.

/to @alanorozco for other comments and PR review when ready.

aghassemi avatar Sep 04 '18 22:09 aghassemi

Thanks @aghassemi. We changed the name from amp-delight to amp-delight-player as suggested. Moreover we already implement the video interface through postMessage communication with the iframe. In the latest commit we extended the video interface even further with getDuration(), getCurrentTime() and getPlayedRanges().

From our end we're ready to open the PR. Let us know.

xymw avatar Sep 05 '18 10:09 xymw

@xymw looking forward to the PR. Please mention me and @alanorozco in the PR description. Thanks!

aghassemi avatar Sep 06 '18 20:09 aghassemi

This issue seems to be in Pending Triage for awhile. @alanorozco Please triage this to an appropriate milestone.

ampprojectbot avatar Dec 12 '18 05:12 ampprojectbot

implemented

aghassemi avatar Jun 19 '19 16:06 aghassemi