You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varwjs=require("wcjs-player");varplayer=newwjs("#player").addPlayer({autoplay: true,wcjs: require('wcjs-prebuilt')// OR// wcjs: require('webchimera.js')// OR// wcjs: require([path-to-Webchimera.js.node-file])});player.addPlaylist("https://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)
varwjs=require("wcjs-player");varconf={autoplay: true,wcjs: require('wcjs-prebuilt')// OR// wcjs: require('webchimera.js'// OR// wcjs: require([path-to-Webchimera.js.node-file])};varplayer=newwjs("#player1").addPlayer(conf);player.addPlaylist("https://archive.org/download/CrayonDragonAnAnimatedShortFilmByTonikoPantoja/Crayon%20Dragon%20-%20An%20animated%20short%20film%20by%20Toniko%20Pantoja.mp4");varplayer2=newwjs("#player2").addPlayer(conf);player2.addPlaylist("https://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)