Skip to content

Commit 0727c1f

Browse files
authored
Merge pull request #60 from iamjohnbarker/next-prev-clip
Adding Next/Prev Clip functionality closes #60
2 parents e46dd15 + 042aa2a commit 0727c1f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ hyperdeck.slotSelect(2);
6868
hyperdeck.slotInfo(); //Gives info on currently selected slot
6969
hyperdeck.slotInfo(1);
7070
hyperdeck.clipsGet();
71+
hyperdeck.nextClip();
72+
hyperdeck.prevClip();
7173
hyperdeck.transportInfo();
7274
hyperdeck.format(format);
7375
```

src/hyperdeck/hyperdeck.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ var Hyperdeck = function(config) {
5454
return this.makeRequest('clips get');
5555
};
5656

57+
this.nextClip = function() {
58+
return this.makeRequest('goto: clip id: +1');
59+
};
60+
61+
this.prevClip = function() {
62+
return this.makeRequest('goto: clip id: -1');
63+
};
64+
5765
this.slotSelect = function(id){
5866
return this.makeRequest('slot select: slot id: ' + id);
5967
};

0 commit comments

Comments
 (0)