-
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
📖 Guide to Building a Bento Video Player #34195
📖 Guide to Building a Bento Video Player #34195
Conversation
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.
This is great, super thorough! love the diffs as a way of explanation
allowlist: [ | ||
... | ||
+ // Bento MyFantasticPlayer, amp-my-fantastic-player | ||
+ 'extensions/amp-my-fantastic-player/1.0/base-element.js->extensions/amp-video/1.0/base-element.js', |
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.
Might be worth sectioning off the area of dep-check config that currently has YouTube and Vimeo to establish a video-player section. Also, will Bento components need a dep on the video-manager-impl.js
service or is that only for AMP components?
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.
I would prefer that, but I don't know if we should go against the convention in that file.
case 'pause': | ||
dispatchCustomEvent(currentTarget, data.event, null, { | ||
bubbles: true, | ||
cancelable: false, |
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.
Do bubbles/cancelable need to be wrapped in quotes? I have a hard time keeping track
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.
Per type check, no, since we only want an Object
.
This doesn't cause any issues since we don't do advanced compilation, and we cannot do it without singlepass. Does it even matter anymore?
No description provided.