delian / wcjs-player

Node Player made for WebChimera.js (libVLC wrapper)

Home Page:http://webchimera.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebChimera.js Player

Description

An Open Source Player for WebChimera.js (libvlc binding for node.js/io.js/NW.js/Electron)

Prerequisites

Install

  • npm install wcjs-player

Docs

Usage Example 1

HTML

<div id="player"></div>

JS

var wjs = require("wcjs-player");
var player = new wjs("#player").addPlayer({ autoplay: true });

player.addPlaylist("http://archive.org/download/CartoonClassics/Krazy_Kat_-_Keeping_Up_With_Krazy.mp4");

// from here on you can either call the player with 'player' or 'new wjs("#player")'

Usage Example 2 (two players)

CSS (all player wrappers are natively assigned the webchimeras class)

.webchimeras {
	float: left;
	width: 50%;
	height: 100%
}

HTML

<div id="player1"></div>
<div id="player2"></div>

JS

var wjs = require("wcjs-player");

var player = new wjs("#player1").addPlayer({ autoplay: true });
player.addPlaylist("http://archive.org/download/CrayonDragonAnAnimatedShortFilmByTonikoPantoja/Crayon%20Dragon%20-%20An%20animated%20short%20film%20by%20Toniko%20Pantoja.mp4");

var player2 = new wjs("#player2").addPlayer({ autoplay: true });
player2.addPlaylist("http://archive.org/download/CartoonClassics/Krazy_Kat_-_Keeping_Up_With_Krazy.mp4");

// from here on you can either call the players with 'player' / 'player2' or 'new wjs("#player1")' / 'new wjs("#player2")'

Screenshots

WebChimera.js Player running on NW.js (Windows)

WebChimera.js Player running on Electron (Mac)

WebChimera.js Player Multiscreen Demo running on NW.js (Windows)

About

Node Player made for WebChimera.js (libVLC wrapper)

http://webchimera.org/

License:GNU Lesser General Public License v2.1


Languages

Language:JavaScript 89.2%Language:CSS 10.8%