Twitchy
Videojs skin that happens to resemble a certain awesome video game streaming site.
Videojs skin that happens to resemble a certain awesome video game streaming site.
Simply include the appropriate CSS file! Thanks to RawGit, you can simply include the CSS file directly from the Git repo based on the current version tag.
<link href="//cdn.rawgit.com/mmcc/videojs-skin-twitchy/v1.0.0/dist/videojs-skin-twitchy.css" rel="stylesheet" type="text/css">
If you prefer to host things yourself, you can simply download the stylesheet.
DownloadIf you're already using Sass, you can simply import the skin's SCSS. First, install the skin via NPM.
$ npm install --save-dev videojs-skin-twitchy
You can set any variables you'd like before importing (namely the $custom-colors
map).
$primary-text: #fff !default;
$progress-bar: #0000ff;
$progress-bar-bg: #1B1D1F;
$progress-bar-loading: #333333;
@import "/path/to/node_modules/vjs-skin-twitchy/src/videojs-skin-twitchy";
Simply create a video element as you normally would when using Video.js, but add the vjs-skin-twitchy
class.
<video id="vid" class="video-js vjs-skin-twitchy" controls width="640" height="264" data-setup='{}'>
<source src="http://vjs.zencdn.net/v/oceans.mp4" type='video/mp4'>
<source src="http://vjs.zencdn.net/v/oceans.webm" type='video/webm'>
<track kind="captions" src="../build/demo-files/demo.captions.vtt" srclang="en" label="English"></track>
<p class="vjs-no-js">
To view this video please enable JavaScript, and consider upgrading to a web browser
that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
</p>
</video>