• JavaScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2016-03-05 14:11:33 +03:00
lib Reinitialise queue after error ... 2016-02-14 19:05:34 +01:00
test remove listeners 2013-11-23 06:01:42 -05:00
.editorconfig cleanup syntax 2015-07-11 21:43:50 -04:00
.gitignore start project 2012-09-07 11:48:34 -04:00
.jscsrc add jscs and cleanup formatting 2014-10-18 09:23:53 -04:00
.jshintrc setup mocha tests and failing 2 connection test 2013-11-22 05:48:16 -05:00
.travis.yml update travis config to test again node 0.10 and node 0.11 2014-10-18 10:21:54 -04:00
CONTRIBUTING.md add CONTRIBUTING.md 2012-09-22 21:02:35 -04:00
Gruntfile.js cleanup syntax 2015-07-11 21:43:50 -04:00
index.js add mixer fill command 2015-07-16 20:04:01 -04:00
package.json fix image-producer parsing 2015-08-29 10:23:35 -04:00
README.md fix image-producer parsing 2015-08-29 10:23:35 -04:00
test.js fix commands with files that are more than one folder deep 2013-01-26 13:41:10 -05:00

CasparCG to Node interface

Build Status

This project is early in development and API may change. The query, playout, data and template commands are mostly finished and I will be adding more as I need them. If you need something that is missing add an issue.

For now docs are in the source only. I will be moving them to github pages at some point.

Road Map

0.1 - Implement the entire AMCP Protocol
0.2 - First stable release
0.3 - Add events for all commands and channel/layer status by polling
0.4 - Stable release

Install

npm install caspar-cg

Usage Example

var CasparCG = require("caspar-cg");

ccg = new CasparCG("localhost", 5250);
ccg.connect(function () {
	ccg.info(function (err, serverInfo) {
		console.log(serverInfo);
	});

	ccg.play("1-1", "AMB");

	setTimeout(function () {
		ccg.clear("1");
		ccg.disconnect();
	}, 10 * 1000);
});

ccg.on("connected", function () {
	console.log("Connected");
});

Changelog

v0.0.9

  • Fix info parsing error when parsing image-producer data

v0.0.8

  • Adds resume
  • Adds swap
  • Adds print
  • Adds logLevel

v0.0.7

  • Adds mixerFill to move and resize layers

v0.0.6

ccg.info() now parses layers and returns a much more predictable result.

  • Layers is always an array
  • Numbers and Booleans are parsed (all values were strings before)
  • Parameters with - and _ are replaced with cammel case
  • Inconsistent parameters are renamed

v0.0.5-5

Socket errors are now emitted as connectionError instead of error.