Skip to content

AMP Delight Player#17939

Merged
aghassemi merged 25 commits intoampproject:masterfrom
xymatic:amp-delight
Nov 12, 2018
Merged

AMP Delight Player#17939
aghassemi merged 25 commits intoampproject:masterfrom
xymatic:amp-delight

Conversation

@xymw
Copy link
Copy Markdown

@xymw xymw commented Sep 7, 2018

This is the amp-delight-player component from the intent to implement issue: #17772

@alanorozco @aghassemi

Thank you,
the Delight Team

Matthias Wolff added 3 commits August 29, 2018 18:57
 - 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
@googlebot
Copy link
Copy Markdown

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. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

@ghost
Copy link
Copy Markdown

ghost commented Sep 7, 2018

This pull request introduces 1 alert when merging c87e7e8 into c2a7a19 - view on LGTM.com

new alerts:

  • 1 for Identical operands

Comment posted by LGTM.com

@xymw
Copy link
Copy Markdown
Author

xymw commented Sep 7, 2018

I signed it!

@aghassemi aghassemi requested a review from alanorozco September 7, 2018 17:31
 - fixed linting issues
 - improved and simplified iframe event communication
@xymw
Copy link
Copy Markdown
Author

xymw commented Sep 13, 2018

I signed the CLA.

@googlebot
Copy link
Copy Markdown

CLAs look good, thanks!

@xymw
Copy link
Copy Markdown
Author

xymw commented Sep 21, 2018

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?

FAIL  ./dist/v0.js: 81.68KB > maxSize 81.6KB (gzip) 
ERROR: bundlesize found that ./dist/v0.js has exceeded its size cap of 81.6KB.
This is part of a new effort to reduce AMP's binary size (#14392).
Please contact @choumx or @jridgewell for assistance.

@dreamofabear
Copy link
Copy Markdown

That shouldn't increase v0.js size. I think your branch point had a breakage -- try merging latest master.

Copy link
Copy Markdown
Member

@alanorozco alanorozco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution. Made a few change requests.

Matthias Wolff added 3 commits September 24, 2018 12:14
 - 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
@xymw
Copy link
Copy Markdown
Author

xymw commented Oct 2, 2018

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');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be necessary as it's part of the AMP boilerplate.

Copy link
Copy Markdown
Member

@Gregable Gregable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments on the validator rules only.

name: "amp-delight-player"
version: "0.1"
version: "latest"
requires_usage: GRANDFATHERED
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this one line. All new extensions require that multiple copies may not be included in the same page.

@aghassemi
Copy link
Copy Markdown
Contributor

@xymw thanks for contributing this component. Just a friendly ping for the last couple of remaining code review requests and then we can merge.

Matthias Wolff added 2 commits October 9, 2018 09:48
 - removed unnecessary viewport manipulation
 - removed validator rules
@aghassemi
Copy link
Copy Markdown
Contributor

Thanks @xymw! @alanorozco @Gregable PTAL.

@xymw
Copy link
Copy Markdown
Author

xymw commented Oct 29, 2018

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?

Matthias Wolff added 3 commits November 2, 2018 14:04
 - removed unused redirect iframe event
 - use attemptChangeHeight to change height
 - use template strings
 - removed event section in amp-delight-player.md
Copy link
Copy Markdown
Contributor

@aghassemi aghassemi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xymw Just a few more requests and we can merge after. Thanks for implementing all these features for the AMP version of your video player and writing great code! Great PR overall.

Matthias Wolff added 2 commits November 7, 2018 10:10
 - 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
@aghassemi
Copy link
Copy Markdown
Contributor

Thanks @xymw

@aghassemi aghassemi merged commit fe4d169 into ampproject:master Nov 12, 2018
@@ -0,0 +1,46 @@
FAIL
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file looks like extraneous? Mistyped filename?

alin04 added a commit to alin04/amphtml that referenced this pull request Nov 13, 2018
@alin04 alin04 mentioned this pull request Nov 13, 2018
alin04 added a commit that referenced this pull request Nov 13, 2018
* 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
Enriqe pushed a commit to Enriqe/amphtml that referenced this pull request Nov 28, 2018
Enriqe pushed a commit to Enriqe/amphtml that referenced this pull request Nov 28, 2018
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants