Skip to content

Kevinario/twitch-player

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<twitch-player>

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.

Demo

Check it live.

Usage

  1. Import Web Components' polyfill:

    <link rel="import" href="../bower_components/polymer/polymer.html">
  2. Import Custom Element:

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

    <twitch-player></twitch-player>

Options

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)

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.3.0 September 19, 2015
    • Updated the web component to polymer 1.0+

Previous 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

A Polymer 1.0+ Web Component to embed a Twitch.tv player.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages