The aim of this project is to offer an open-source and powerfull nodeJS API for the CasparCG server. We try to make the API easy to use to enable anyone to quickly build a personalized web interface for CasparCG.
The API uses the AMCP protocol to send commands to CasparCG.
Return states of the server are catched with the OSC protocol and send back to the clients with an socket.IO socket.
The project is still under development. Please report the bugs you encoutered in the issues section.
- Download the CasparCG Server 2.1.0 Beta 1 for Windows version here.
Why a beta version ?
The stable version of CasparCG is very limited regarding the osc informations available. With the latest stable version, it would be impossible to get some very usefull informations like the currently playling file time, the recording time, etc.
- Edit the CasparCG configuration file in order to :
- Have a least 3 channels
- Have a predefined OSC client matching with the server on which you run the API
- If you need it, a demo configuration file is available here.
-
Make sur you have nodeJS and npm installed
node -v npm -v
If they are not, please install the last release from the nodeJS site.
-
Download the API sources
git clone https://github.com/M2I-Group-CasparCG/CasparCGAPI.git
-
install the depedencies
npm install
-
once everything is installed, just run the API
npm start
-
You should know see the current message in the nodeJS prompt :
udp server listening on 0.0.0.0:5253 Express server listening on port 3000
If you encountered any problem during the installation process, please create an issue with the help wanted
tag to ask for help !
If you want to try it with a web interface, please install our demo interface ClydeUi.
Please visit the wiki.