Skip to content

Commit

Permalink
Merge pull request #75 from dylanreeve/master
Browse files Browse the repository at this point in the history
Add named clip recording
  • Loading branch information
tjenkinson committed May 19, 2023
2 parents b99c9e9 + 37aa761 commit 85609df
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/hyperdeck/hyperdeck.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ var Hyperdeck = function(config) {
return this.makeRequest('stop');
};

this.record = function() {
return this.makeRequest('record');
this.record = function(clipname) {
if (typeof clipname === 'string') {
return this.makeRequest('record: name: ' + clipname);
} else {
return this.makeRequest('record');
}
};

this.goTo = function(timecode) {
Expand Down

0 comments on commit 85609df

Please sign in to comment.