Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ===================
- Setup (both Win 10/Mac High Sierra)
- ===================
- (1)
- Install VLC 3.0.2 on system (.dmg/.exe as applicable)
- ===============================================================
- (2.0)
- cd <working_dir>
- git clone https://github.com/RSATom/WebChimera.js.git # master branch, commit b49a144)
- cd WebChimera.js
- (2.1)
- Edit contents of build_electron.sh, as below:
- export npm_config_wcjs_runtime="electron"
- export npm_config_wcjs_runtime_version="1.7.13"
- export npm_config_wcjs_arch="x64"
- npm install
- (2.2)
- The compiled VLC library is located at build/Release/WebChimera.js.node
- ===============================================================
- (3.0)
- git clone https://github.com/aiyobi/node-vlcPlayer-demo.git
- cd node-vlcPlayer-demo
- (3.1)
- Set environment variables as under:
- <WIN>
- set WCJS_RUNTIME=electron
- set WCJS_RUNTIME_VERSION=v1.4.13
- set WCJS_VERSION=v0.2.7
- set WCJS_ARCH=x64
- <MAC>
- export WCJS_RUNTIME="electron"
- export WCJS_RUNTIME_VERSION="v1.4.13"
- export WCJS_VERSION="v0.2.7"
- export WCJS_ARCH="x64"
- (3.2)
- npm install
- (3.3)
- Copy WebChimera.js.node from
- WebChimera.js/build/Release/WebChimera.js.node
- to
- node-vlcPlayer-demo/node_modules/wcjs-prebuilt/bin/
- ==========================================================
- (4) Update VLC libraries
- This step is different for Win and Mac.
- On Win, I copy libraries from VLC installation direction to
- node-vlcPlayer-demo/node_modules/wcjs-prebuilt/bin/lib, and got it working
- On Mac, VLC 3.0.2 uses @rpath in the libs. I realized I do not need to copy anything to local lib directory as in case of Windows. It was already using the system VLC libraries
- ==========================================================
- (5) Execute
- <Win>
- ./node_modules/<path_to_electron> app.js
- [WORKS]
- <Mac>
- ./node_modules/electron/dist/Electron.app/Contents/MacOS/Electron app.js
- [Throws an error]
- Error as under:
- '
- Uncaught TypeError: Cannot set property 'setting' of undefined
- at wjs.addPlaylist (/Volumes/dataDrive/work/yobi/web/build_2.0.0-vlc_3.0.2/node-vlcPlayer-demo/node_modules/wcjs-player/index.js:633)
- '
Add Comment
Please, Sign In to add comment