Releases: GoogleWebComponents/google-youtube
1.0.2
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 whenautoplay="1"
was set.
Installation
bower install GoogleWebComponents/google-youtube
1.0.1
This release bumps up the Polymer dependencies to 0.5.1.
Installation
bower install GoogleWebComponents/google-youtube
1.0.0
This release bumps up the Polymer dependencies to 0.5.0.
Installation
bower install GoogleWebComponents/google-youtube
0.0.9
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
v0.0.8 release
This version of <google-youtube>
adds supports for mute()
, unMute()
, and setVolume()
methods, courtesy of @jlmcdonald
Installation
bower install GoogleWebComponents/google-youtube
Changelog
0.0.7
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
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
v0.0.5 release
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
Merge branch 'review-0.0.4'
Dependency updates
Tagging a new release to account for the move from Polymer 0.2.4 to 0.3.3.