Giter Site home page Giter Site logo

willnew / wcjs-player Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jaruba/wcjs-player

0.0 1.0 0.0 546 KB

Node Player made for WebChimera.js (libVLC wrapper)

Home Page: http://webchimera.org/

License: GNU Lesser General Public License v2.1

CSS 10.69% JavaScript 89.31%

wcjs-player's Introduction

WebChimera.js Player

Description

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

Install

  • npm install wcjs-player

  • npm install wcjs-prebuilt (configuration)

    OR

    npm install webchimera.js (will build WebChimera.js.node, prerequisites)

    OR

    not use wcjs-prebuilt or webchimera.js, but implement a post install script or a grunt task that fetches the correct package from the prebuilts

Docs

Usage Example 1

HTML

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

JS

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

var player = new wjs("#player").addPlayer({
  autoplay: true,
  wcjs: require('wcjs-prebuilt')
  // OR
  // wcjs: require('webchimera.js')
  // OR
  // wcjs: require([path-to-Webchimera.js.node-file])
});

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 conf = {
  autoplay: true,
  wcjs: require('wcjs-prebuilt')
  // OR
  // wcjs: require('webchimera.js'
  // OR
  // wcjs: require([path-to-Webchimera.js.node-file])
};

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

var player2 = new wjs("#player2").addPlayer(conf);
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)

wcjs-player's People

Contributors

jaruba avatar willnew avatar gerwinbrunner avatar vankasteelj avatar rsatom avatar yinso avatar amilajack avatar delian avatar dragantl avatar zzzen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.