-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ [Story Video] Connect CacheUrl service to amp-video and load sources #33466
✨ [Story Video] Connect CacheUrl service to amp-video and load sources #33466
Conversation
This pull request introduces 1 alert when merging 678d3b3 into 66ad8b8 - view on LGTM.com new alerts:
|
Co-authored-by: Ryan Cebulko <ryan@cebulko.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gmajoulet fixed the tests according to your comments. PTAL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super high quality PR 🥇
Co-authored-by: Gabriel Majoulet <gmajoulet@google.com>
ampproject#33466) * Added canonical to videos example * Started video cache * Use cdn url from url-impl * Remove unnecessary | null * Undo videos.html * Remove console.log * Using ternary operator for reduce * Account for cached docs * Update logic with toolbox * Added service * Undo amp-video * Added cache url service * Added owners * Cache url to video * Simplified cache example * Updated title * Changed name to amp-cache-url of folder * Update readme * Update comments * Remove example * Updated readme * Added code * Fixed tests * Removed comment * Added some more tests * Fixed cdnurl * Update names of docSupports * Fix cacheUrl not replacing * updated cacheDomain param name * Check not cached doc to add cache sources * improved implementation from comments * added tests * Added gregable file on examples * Added warning * Uppercase user error * Updated opt in * Fix response.json is promise * Updated test * Fixed toArray import * Fixed visibilityState * Use helper functions * Added tests to amp-cache-url * Update extensions/amp-cache-url/0.1/test/test-amp-cache-url.js Co-authored-by: Ryan Cebulko <ryan@cebulko.com> * Using extensionScriptInNode with win * Updated tests to match comments * Not export applySources Co-authored-by: Gabriel Majoulet <gmajoulet@google.com> Co-authored-by: Ryan Cebulko <ryan@cebulko.com> Co-authored-by: Gabriel Majoulet <gmajoulet@google.com>
Fetches the
/mbv
video sources from the CDN cache and populates the sources with the result.Working DOM structure:
