Skip to content
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

Add amp-audio support #65

Merged
merged 5 commits into from
Sep 11, 2015
Merged

Add amp-audio support #65

merged 5 commits into from
Sep 11, 2015

Conversation

rgthree
Copy link
Contributor

@rgthree rgthree commented Sep 11, 2015

No description provided.

@cramforce
Copy link
Member

Nice! Would you mind moving this into extensions/
This should be a really easy conversion. Sample commit 3863293

I think this is sufficiently rare to be good for opt-in.

* browser implementations.
* @return {Dimensions}
*/
function getBrowserAudioDefaultDimensions() {
Copy link
Member

Choose a reason for hiding this comment

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

Cool

Also, use 'loadstart' event for AUDIO/VIDEO media in 'loadPromise'
Move audio to /extensions
@rgthree
Copy link
Contributor Author

rgthree commented Sep 11, 2015

Cool.

  • Moved amp-audio to /extensions.
  • Added https check for both audio or nested source elements.
  • Return loadPromise(audio) in AmpAudio#layoutCallback.
  • Added loadstart event for AUDIO/VIDEO elements within loadPromise to resolve once a media element has started loading. (Or, canplaythrough would be the audio/video load equivalent).

@cramforce
Copy link
Member

LGTM

cramforce added a commit that referenced this pull request Sep 11, 2015
@cramforce cramforce merged commit 90ab32d into ampproject:master Sep 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants