Web Component wrapper for embedding a Twitch.tv player using Polymer.
Need to update to showcase demo.
Updated / Maintained by Kevin van der Staaij.
Inspired by Rodrigo Silva de Melo.
-
Import Web Components' polyfill:
<link rel="import" href="../bower_components/polymer/polymer.html">
-
Import Custom Element:
<link rel="import" href="twitch-player/twitch-player.html">
-
Start using it!
<twitch-player></twitch-player>
Attribute | Options | Default | Description |
---|---|---|---|
channel |
string | auzomtv |
your channel in twitch.tv |
allowFullScreen |
boolean | true | fullscreen enable/disable |
height |
int | 378 | height of the video |
width |
int | 620 | width of the video |
autoPlay |
boolean | true | auto play enable/disable |
startVolume |
int | 25 | initial volume |
type |
live , archive |
live |
live for live stream, archive for channel recorded videos |
archiveId |
int | undefined | recorded video id, only used to archive type, archiveId composes video url (e.g., http://www.twitch.tv/channel/b/999999) |
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
- v0.3.0 September 19, 2015
- Updated the web component to polymer 1.0+
- v0.2.0 August 28, 2013
- Added Support for recorded videos
- v0.1.1 August 28, 2013
- Changed "a" element style
- Using Polymer cdn
- v0.1.0 August 27, 2013
- First version of twitch-tv element
- v0.0.1 August 19, 2013
- Started project using boilerplate-element