├── LICENSE ├── README.md ├── app.js ├── index.html └── package.json /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Branza Alexandru 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WebChimera.js Player Multiscreen Demo 2 | 3 | **This is a special feature created due to popular demand, it is usually used for surveillance cam software.** 4 | 5 | #### Description 6 | 7 | Demo for [wcjs-player](https://github.com/jaruba/wcjs-player)'s Multiscreen Feature showing WebChimera.js Player playing 4 videos at the same time. 8 | 9 | ``wcjs-player`` uses [WebChimera.js](https://github.com/RSATom/WebChimera.js) to draw the frames of libVLC to a canvas. 10 | 11 | 12 | #### Demo Install 13 | 14 | ``` 15 | git clone https://github.com/jaruba/node-vlc-multiscreen.git 16 | cd node-vlc-multiscreen 17 | ``` 18 | 19 | **Windows** 20 | ``` 21 | set WCJS_RUNTIME=electron 22 | set WCJS_RUNTIME_VERSION=v0.37.6 23 | set WCJS_VERSION=0.2.5 24 | set WCJS_ARCH=ia32 25 | ``` 26 | 27 | **OSX/Linux** 28 | ``` 29 | export WCJS_RUNTIME="electron" 30 | export WCJS_RUNTIME_VERSION="v0.37.6" 31 | export WCJS_VERSION="0.2.5" 32 | export WCJS_ARCH="ia32" 33 | ``` 34 | 35 | ``` 36 | npm install 37 | ``` 38 | 39 | Now download Electron v0.37.6 for 32bit and run `app.js` 40 | 41 | !! You can change the configuration values for `wcjs-prebuilt` according to your case, but keep in mind that the options are limited to the [prebuilt packages](https://github.com/RSATom/WebChimera.js/releases) 42 | 43 | **Screenshots:** 44 | 45 | WebChimera.js Player Multiscreen Demo running on NW.js (Windows) 46 | 47 | 48 | -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | if (process.platform == 'win32') 2 | process.env['VLC_PLUGIN_PATH'] = require('path').join(__dirname, 'node_modules/wcjs-prebuilt/bin/plugins'); 3 | 4 | var app = require('app'); // Module to control application life. 5 | var BrowserWindow = require('browser-window'); // Module to create native browser window. 6 | 7 | var mainWindow = null; 8 | 9 | 10 | // This method will be called when Electron has done everything 11 | // initialization and ready for creating browser windows. 12 | app.on('ready', function() { 13 | 14 | // Create the browser window. 15 | mainWindow = new BrowserWindow({width: 800, height: 600}); 16 | 17 | // and load the index.html of the app. 18 | mainWindow.loadUrl('file://' + __dirname + '/index.html'); 19 | 20 | mainWindow.openDevTools({detach: true}); 21 | 22 | // Emitted when the window is closed. 23 | mainWindow.on('closed', function() { 24 | mainWindow = null; 25 | }); 26 | 27 | }); 28 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 |
10 |
11 |
12 |
13 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "wcjs-player-multiscreen-demo", 3 | "description": "WebChimera.js Player Multiscreen Demo", 4 | "version": "0.0.2", 5 | "private": true, 6 | "main": "app://host/index.html", 7 | "dependencies": { 8 | "wcjs-player": "^6.0.0", 9 | "wcjs-prebuilt": "^3.0.0" 10 | }, 11 | "env": "development" 12 | } 13 | --------------------------------------------------------------------------------