Intent to Implement: Delight Player cloud-hosted video embed
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 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.
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 looking forward to the PR. Please mention me and @alanorozco in the PR description. Thanks!
This issue seems to be in Pending Triage for awhile. @alanorozco Please triage this to an appropriate milestone.
implemented