Skip to content

Releases: GoogleWebComponents/google-youtube

1.0.2

28 Jan 22:25
Compare
Choose a tag to compare

This release:

  • Adds a new attribute, playbackstarted.
  • Bumps up the Polymer dependencies to 0.5.4.
  • Fixes a bug that caused the videoidChanged handler to cue instead of load a video when autoplay="1" was set.

Installation

bower install GoogleWebComponents/google-youtube

1.0.1

17 Nov 16:00
Compare
Choose a tag to compare

This release bumps up the Polymer dependencies to 0.5.1.

Installation

bower install GoogleWebComponents/google-youtube

1.0.0

11 Nov 21:02
Compare
Choose a tag to compare

This release bumps up the Polymer dependencies to 0.5.0.

Installation

bower install GoogleWebComponents/google-youtube

0.0.9

17 Oct 18:36
Compare
Choose a tag to compare

This release adds support for a new attribute, playsupported. <google-youtube> will automatically attempt to determine whether programmatic initial playback of a video is supported in the current browser, and set playsupported to true if it is, and false if it isn't. This value is then cached using <core-localstorage> and used during subsequent visits to your page from the same browser.

Most mobile browsers do not support initial playback via the <video>.play() method, and if you attempt playback of a YouTube embed on such a browser, the embed becomes unusable.

It's recommended that if you have a custom "Play" button in your web page that in turns calls <youtube-video>.play(), you disable the button if <youtube-video>.playsupported is false—the demo page has an example of the recommended logic for determining whether a "Play" button should be enabled/disabled.

Installation

bower install GoogleWebComponents/google-youtube

Changelog

  • a8e1f0a - Cache playsupported in localStorage after detecting it.
  • 9cf750f - Bump version to 0.0.9.
  • acfd227 - Cleaned up some comments.
  • 7f7ce65 - Changes to playsupported detection.
  • 006b714 - Added the playsupported attribute

v0.0.8 release

26 Sep 19:44
Compare
Choose a tag to compare

This version of <google-youtube> adds supports for mute(), unMute(), and setVolume() methods, courtesy of @jlmcdonald

Installation

bower install GoogleWebComponents/google-youtube

Changelog

  • 22415b9 - Updated the JSDoc of the volume methods slightly.
  • a1f5b5d - Added warning in jsdoc blocks indicating that the volume control methods may break user expectations in a mobile environment
  • fb07e9f - Exposes the setVolume, mute, and unMute methods of the underlying iFrame API

0.0.7

19 Sep 17:50
Compare
Choose a tag to compare

This version of <google-youtube> adds supports for the fluid attribute.

Setting <google-youtube fluid> will tell the player to find the ratio of your video's width and height (if set), otherwise it will assume a 16:9 aspect ratio. It will then set its width to 100% and add enough padding to preserve the correct aspect ratio. This means your video will resize on responsive web pages without adding black letterboxes. More info about fluid and all the other parameters can be found in the docs.

Installation

bower install GoogleWebComponents/google-youtube

Changelog

0.0.6

18 Sep 21:04
Compare
Choose a tag to compare

This version of <google-youtube> adds supports for the thumbnail attribute.

If set, an <img src="{{thumbnail}}"> will be used in place of the YouTube embed initially, and when clicked on it will be swapped out for an autoplaying embed. More info about thumbnail and all the other parameters can be found in the docs.

Installation

bower install GoogleWebComponents/google-youtube

Changelog

  • 6bc531c - Added an alt= attribute to the <img>.
  • c01f929 - Reworked some styles.
  • 53b7347 - Use scheme-relative URL for Polymer img.
  • 9058d5f - Support for custom thumbnails that trigger the YouTube embed.
  • 49f5f8c - use SPDX license idenitifier

v0.0.5 release

02 Sep 17:20
Compare
Choose a tag to compare

The v0.0.5 release coincides with the Polymer 0.4.0 release, and consists primarily of updates to those dependencies.

v0.0.4 release

01 Aug 21:17
Compare
Choose a tag to compare
Merge branch 'review-0.0.4'

Dependency updates

11 Jul 18:10
Compare
Choose a tag to compare

Tagging a new release to account for the move from Polymer 0.2.4 to 0.3.3.