atem-connection
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -5,2 +5,15 @@ # Changelog | ||
## [1.3.0](https://github.com/nrkno/tv-automation-atem-connection/compare/1.2.0...1.3.0) (2020-01-12) | ||
### Features | ||
* add TimeCommand and TimeRequestCommand ([6a95340](https://github.com/nrkno/tv-automation-atem-connection/commit/6a953403be9fd930a47a14b38bd843028174c167)) | ||
### Bug Fixes | ||
* add atem-mini ModelId ([b6787a9](https://github.com/nrkno/tv-automation-atem-connection/commit/b6787a92f4ad35b60020219d36878db818adbdfb)) | ||
* expose listVisibleInputs to allow explicit usage on an old/cached state ([ee69821](https://github.com/nrkno/tv-automation-atem-connection/commit/ee69821ed25af8e6d8c999bcb5271e8d87b04b9f)) | ||
## [1.2.0](https://github.com/nrkno/tv-automation-atem-connection/compare/1.1.0...1.2.0) (2019-12-13) | ||
@@ -7,0 +20,0 @@ |
@@ -58,2 +58,4 @@ /// <reference types="node" /> | ||
setDownstreamKeyRate(rate: number, key?: number): Promise<any>; | ||
setTime(hour: number, minute: number, second: number, frame: number): Promise<any>; | ||
requestTime(): Promise<any>; | ||
macroContinue(): Promise<any>; | ||
@@ -60,0 +62,0 @@ macroDelete(index?: number): Promise<any>; |
@@ -205,2 +205,11 @@ "use strict"; | ||
} | ||
setTime(hour, minute, second, frame) { | ||
const command = new Commands.TimeCommand(); | ||
command.updateProps({ hour, minute, second, frame }); | ||
return this.sendCommand(command); | ||
} | ||
requestTime() { | ||
const command = new Commands.TimeRequestCommand(); | ||
return this.sendCommand(command); | ||
} | ||
macroContinue() { | ||
@@ -207,0 +216,0 @@ const command = new Commands.MacroActionCommand(); |
@@ -17,1 +17,2 @@ import AbstractCommand from './AbstractCommand'; | ||
export * from './TallyBySourceCommand'; | ||
export * from './TimeCommand'; |
@@ -20,2 +20,3 @@ "use strict"; | ||
tslib_1.__exportStar(require("./TallyBySourceCommand"), exports); | ||
tslib_1.__exportStar(require("./TimeCommand"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -14,3 +14,4 @@ export declare enum Model { | ||
Constellation = 11, | ||
Constellation8K = 12 | ||
Constellation8K = 12, | ||
Mini = 13 | ||
} | ||
@@ -17,0 +18,0 @@ export declare enum ProtocolVersion { |
@@ -18,2 +18,3 @@ "use strict"; | ||
Model[Model["Constellation8K"] = 12] = "Constellation8K"; | ||
Model[Model["Mini"] = 13] = "Mini"; | ||
})(Model = exports.Model || (exports.Model = {})); | ||
@@ -20,0 +21,0 @@ var ProtocolVersion; |
@@ -7,2 +7,3 @@ export * from './atem'; | ||
export { Enums, Commands, Util }; | ||
export { listVisibleInputs } from './lib/tally'; | ||
import * as VideoState from './state/video'; | ||
@@ -9,0 +10,0 @@ import * as AudioState from './state/audio'; |
@@ -12,2 +12,4 @@ "use strict"; | ||
exports.Util = atemUtil_1.Util; | ||
var tally_1 = require("./lib/tally"); | ||
exports.listVisibleInputs = tally_1.listVisibleInputs; | ||
const VideoState = require("./state/video"); | ||
@@ -14,0 +16,0 @@ exports.VideoState = VideoState; |
@@ -24,2 +24,9 @@ import { Model, ProtocolVersion } from '../enums'; | ||
} | ||
export interface TimeInfo { | ||
hour: number; | ||
minute: number; | ||
second: number; | ||
frame: number; | ||
dropFrame: boolean; | ||
} | ||
export declare class DeviceInfo { | ||
@@ -32,2 +39,3 @@ apiVersion: ProtocolVersion; | ||
power: boolean[]; | ||
lastTime: TimeInfo; | ||
} |
{ | ||
"name": "atem-connection", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Typescript Node.js library for connecting with an ATEM switcher.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
# Sofie: The Modern TV News Studio Automation System (ATEM connection library) | ||
[](https://circleci.com/gh/nrkno/tv-automation-atem-connection) | ||
[](https://codecov.io/gh/nrkno/tv-automation-atem-connection) | ||
[](https://www.npmjs.com/package/atem-connection) | ||
This library is used in the [**Sofie** TV News Studio Automation System](https://github.com/nrkno/Sofie-TV-automation/) for connecting to Blackmagic Design ATEM devices. | ||
## Device support | ||
| Version | Level of Support | | ||
| ----- | ----- | | ||
| v8.0 - v8.1 | Primary focus. Target for new features | | ||
| v7.2 | Previous focus, should still work well | | ||
| v7.3 - v7.5.2 | Community tested, we may accept PRs but will not be testing these | | ||
Due to the nature of the ATEM firmware and its tendency to break things, it is likely that new firmwares will require updates to the library to be fully supported. | ||
Additionally any newly unimplemented functionality will generally only be written and tested for the latest firmware, even if it was added in an older firmware. | ||
It is tested on a variety of models spanning every generation, and the aim is to provide support for every model. | ||
Note: USB control of devices is not supported by this library. | ||
## Technology highlights | ||
@@ -9,0 +24,0 @@ - Typescript |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
511550
352
7552
114