butterproject/wcjs-player

Name: wcjs-player

Owner: butterproject

Description: Node Player made for WebChimera.js (libVLC wrapper)

Created: 2015-10-29 16:59:34.0

Updated: 2016-04-26 21:20:49.0

Pushed: 2015-10-30 20:38:59.0

Homepage: http://www.webchimera.org/

Size: 571

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

WebChimera.js Player

Description

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

Prerequisites

Install

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)


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.