Code Monkey home page Code Monkey logo

electron-wcjs-player's Introduction

electron-wcjs-player

only meant to try out wcjs-player

steps I have tried so far:

NOTE THAT THE ORDER of STEPS MATTERS

  • npm install

  • fix ref path to wcjs-prebuilt/bin/plugins in main.js

if (process.platform == 'win32')
    process.env['VLC_PLUGIN_PATH'] = require('path').join(__dirname, '../../wcjs-prebuilt/bin/plugins'); // make sure ../../ is there
  • fix ref path to wcjs-prebuilt/bin/plugins in index.html
<script>

console.log("path to webchimera bin/plugins ==> " + process.env['VLC_PLUGIN_PATH'] )

var pathToWebChimera = require('path').join(__dirname, '../../wcjs-prebuilt/bin') // make sure ../../ is there
console.log("path to webchimera bin ==> " + pathToWebChimera)

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

//player.addPlaylist("http://archive.org/download/CartoonClassics/Krazy_Kat_-_Keeping_Up_With_Krazy.mp4");
player.addPlaylist("rtsp://192.168.0.16:8554/nextcam");
</script>
  • COPY node_modules/wcjs-prebuilt to OUTSIDE of project root

  • npm run pack-win

  • fix node_modules/electron-winstaller/template.nuspectemplate so that:

  <files>
    <file src="locales\**" target="lib\net45\locales" />
    <file src="resources\**" target="lib\net45\resources" />
  **  <file src="wcjs-prebuilt\**" target="lib\net45\wcjs-prebuilt" /> ** // add one line here
    <file src="*.bin" target="lib\net45" />
    <file src="*.dll" target="lib\net45" />
    <file src="*.pak" target="lib\net45" />
    <file src="Update.exe" target="lib\net45\squirrel.exe" />
    <file src="icudtl.dat" target="lib\net45\icudtl.dat" />
    <file src="LICENSE" target="lib\net45\LICENSE" />
    <file src="<%- exe %>" target="lib\net45\<%- exe %>" />
  </files>
  • Copy wcjs-prebuilt/* to out/electron-wcjs-player-win32-ia32/

  • npm run installer

p.s. this app does not quit well from task-manager's view; will come back and figure out for now, turn on task manager, looking for 'Test (32 bit)(s) and end task it (them)

electron-wcjs-player's People

Contributors

nextdrive-neilchen avatar

Stargazers

 avatar  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.