Skip to content

Adding dock support for Brid player#26877

Merged
alanorozco merged 2 commits intoampproject:masterfrom
grajzer:brid-dock
Feb 25, 2020
Merged

Adding dock support for Brid player#26877
alanorozco merged 2 commits intoampproject:masterfrom
grajzer:brid-dock

Conversation

@grajzer
Copy link
Copy Markdown
Contributor

@grajzer grajzer commented Feb 20, 2020

No description provided.

@amp-owners-bot
Copy link
Copy Markdown

amp-owners-bot bot commented Feb 20, 2020

Hey @ampproject/wg-caching, these files were changed:

  • extensions/amp-brid-player/0.1/test/validator-amp-brid-player.html
  • extensions/amp-brid-player/0.1/test/validator-amp-brid-player.out
  • extensions/amp-brid-player/validator-amp-brid-player.protoascii

Copy link
Copy Markdown
Contributor

@honeybadgerdontcare honeybadgerdontcare left a comment

Choose a reason for hiding this comment

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

validation changes look good

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.

Could you first push AD_START and AD_END events?

Otherwise users cannot interact with the ad when docked:

When implemented correctly, you get a back-to-inline button:

@grajzer
Copy link
Copy Markdown
Contributor Author

grajzer commented Feb 25, 2020

Thank you for the feedback @alanorozco. Just added several events that were missing in our player (ENDED, AD_START, AD_END, LOADEDMETADATA).

Note that there's a small issue with these dock controls and prerolls. Here's the scenario:

  • Clicking play starts video play, preroll is started and AD_START is dispatched.
  • User scrolls and player gets into the dock mode -- dock extension sets listeners at this time.
  • Because AD_START was dispatched before, controls won't be updated.

Basically, dock extension won't update controls on ad started before player entered the dock mode at least once.

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.

This change seems fine for this component, let's merge.

@grajzer Re: the state race issue with AD_START, it seems like a legitimate bug at the amp-video-docking level. Could you please file a bug separately?

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.

Approving :)

@alanorozco alanorozco merged commit f9d8e7c into ampproject:master Feb 25, 2020
Gregable pushed a commit that referenced this pull request Feb 26, 2020
Co-authored-by: Allan Banaag <banaag@google.com>
robinvanopstal added a commit to jungvonmatt/amphtml that referenced this pull request Feb 27, 2020
* master: (54 commits)
  inabox-resources: Minor test improvement (ampproject#26916)
  DocInfo: replace metaTags with viewport in API (ampproject#26687)
  🐛 SwG now uses AMP sendBeacon interface (ampproject#26970)
  🏗 Allow array destructuring on preact hooks (ampproject#26901)
  Gulp Dep Check: fail on unused entries (ampproject#26981)
  Update no-import lint rule to forbid sub-paths (ampproject#26531)
  🐛 amp-ad type blade - fix bladeOnLoad callback (ampproject#26627)
  📖 Clarify when max-age is required (ampproject#26956)
  ♻️ Consolidate players as .i-amphtml-media-component (ampproject#26967)
  Add Preact Enzyme tests (ampproject#26529)
  Fixes `update_tests` flag on `gulp validator` (ampproject#26965)
  📦 Update dependency google-closure-library to v20200224 (ampproject#26986)
  🏗 Transform aliased configured components (ampproject#26541)
  ✨ InaboxResources: Observe intersections for some elements' viewportCallbacks (ampproject#26942)
  variable substitutions: Support allowlist lookup in AmpDocShadow (ampproject#26731)
  cl/297197875 Revision bump for ampproject#26877 (ampproject#26982)
  Json fix (ampproject#26971)
  📦 Update dependency mocha to v7.1.0 (ampproject#26976)
  Add documentation for amp-access-scroll (ampproject#26782)
  make controls always shown in amp for email (ampproject#25714)
  ...
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.

6 participants