Conversation
- renamed from 'amp-delight' to 'amp-delight-player' - implemented getCurrentTime interface - implemented getDuration interface - implemented getPlayedRanges interface
- implemented dock behavior - implemented autoplay behavior - implemented showControls interface - implemented hideControls interface - refined fullscreen handling - refined iframe event system - testing and validation - updated docs
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
|
This pull request introduces 1 alert when merging c87e7e8 into c2a7a19 - view on LGTM.com new alerts:
Comment posted by LGTM.com |
|
I signed it! |
- fixed linting issues - improved and simplified iframe event communication
|
I signed the CLA. |
|
CLAs look good, thanks! |
- added amp-delight-player.js to whitelist for video-manager-impl.js service - fixed use of postMessage
|
Travis bundle-size check is throwing errors because the size of v0.js has increased by 0.08KB, most likely due to the addition of amp-delight-player in bundles.config.js. How can this be resolved @alanorozco @choumx? |
|
That shouldn't increase v0.js size. I think your branch point had a breakage -- try merging latest master. |
alanorozco
left a comment
There was a problem hiding this comment.
Thanks for your contribution. Made a few change requests.
- fixed css formatting - use i-amphtml-faded class instead of faded - set more style properties in css instead of js - simplified firstLayoutCompleted() - removed unnecessary super calls in pauseCallback and resumeCallback - use listen() util instead of raw addEventListener
|
Made the requested changes and all checks passed. Waiting for further input. |
| this.element.classList.add('i-amphtml-expanded'); | ||
| let viewportMeta = document.querySelector('#dl8-meta-viewport'); | ||
| if (!viewportMeta) { | ||
| viewportMeta = document.createElement('meta'); |
There was a problem hiding this comment.
This shouldn't be necessary as it's part of the AMP boilerplate.
Gregable
left a comment
There was a problem hiding this comment.
Some comments on the validator rules only.
| name: "amp-delight-player" | ||
| version: "0.1" | ||
| version: "latest" | ||
| requires_usage: GRANDFATHERED |
There was a problem hiding this comment.
Please remove this one line. All new extensions require usage to be added to the document.
| version: "0.1" | ||
| version: "latest" | ||
| requires_usage: GRANDFATHERED | ||
| deprecated_allow_duplicates: true |
There was a problem hiding this comment.
Please remove this one line. All new extensions require that multiple copies may not be included in the same page.
|
@xymw thanks for contributing this component. Just a friendly ping for the last couple of remaining code review requests and then we can merge. |
- removed unnecessary viewport manipulation - removed validator rules
|
Thanks @xymw! @alanorozco @Gregable PTAL. |
|
Hey @alanorozco @Gregable @aghassemi what is the status of the PR? Do we need to implement any further changes before merge or is everything good to go? |
- removed unused redirect iframe event - use attemptChangeHeight to change height - use template strings - removed event section in amp-delight-player.md
- renamed i-amphtml-faded css class into i-amphtml-delight-player-faded - removed unused i-amphtml-expanded - removed use of actionServiceForDoc action triggering - fixed up amp-delight-player.md
|
Thanks @xymw |
| @@ -0,0 +1,46 @@ | |||
| FAIL | |||
There was a problem hiding this comment.
This file looks like extraneous? Mistyped filename?
* cl/220306609 Revision bump for #17907 * cl/220307253 Revision bump for #19128 * cl/220310523 Revision bump for #19129 * cl/220399983 Revision bump for #19167 * cl/221145203 n/a * cl/221159765 Revision bump for #19214 * cl/221164382 Invalidate `<amp-script>` tag as well * cl/221176616 Revision bump for #17939 * cl/221181356 Revision bump for #19171
* cl/220306609 Revision bump for ampproject#17907 * cl/220307253 Revision bump for ampproject#19128 * cl/220310523 Revision bump for ampproject#19129 * cl/220399983 Revision bump for ampproject#19167 * cl/221145203 n/a * cl/221159765 Revision bump for ampproject#19214 * cl/221164382 Invalidate `<amp-script>` tag as well * cl/221176616 Revision bump for ampproject#17939 * cl/221181356 Revision bump for ampproject#19171
This is the amp-delight-player component from the intent to implement issue: #17772
@alanorozco @aghassemi
Thank you,
the Delight Team