Skip to content

rsmelo/twitch-tv-element

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

<twitch-tv>

Web Component wrapper for Twitch.tv player using Polymer.

Maintained by Rodrigo Silva de Melo.

Demo

Check it live.

Usage

  1. Import Web Components' polyfill:

    <script src="http://cdnjs.cloudflare.com/ajax/libs/polymer/0.0.20130711/polymer.min.js"></script>
  2. Import Custom Element:

    <link rel="import" href="src/twitch-tv.html">
  3. Start using it!

    <twitch-tv></twitch-tv>

Options

Attribute Options Default Description
channel string joindotared 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)

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

  • 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

License

MIT License

About

Web Component wrapper for Twitch.tv player using Polymer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published