youtube-video-statistic

Adding video statistics to the standard YouTube embedable video.


Keywords
youtube, youtube-video-embed, web-components, web-component
License
MIT
Install
bower install youtube-video-statistic

Documentation

youtube-video-statistic

See the component page for more information.

Getting Started

Install using Bower

bower install youtube-video-statistic

Usage

If you haven't already, include the WebComponents polyfill on your page:

<head>
	<script src="../webcomponentsjs/webcomponents.min.js"></script>
</head>

Import the component:

<link rel="import" href="youtube-video-statistic.html">

You can now use the component like any other element:

<youtube-video-statistic videoid="yRbOSdAe_JU"
                         apiKey="AIzaSyDq6ojHsOAqd8lCuY">
</youtube-video-statistic>

To get an API Key, please refer to the YouTube Data API (v3) getting started guide.