Git Product home page Git Product logo

node-caspar-cg's Introduction

NOTE: THIS IS A SLIGHTLY MODIFIED VERSION OF THE CASPAR-CG MODULE. IT HAS SUPPORT FOR FLASH TEMPLATE LAYERS. IT'S API IS THEREFORE DIFFERENT THAN STOCK MODULE.

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

node-caspar-cg's People

Contributors

hreinnbeck avatar jstarpl avatar respectthecode avatar tomkaltz avatar

Stargazers

 avatar

Watchers

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