@stinkycomputing/sesame-api-client 1.4.1-alpha.1 → 1.4.1-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -30,11 +30,11 @@ const client = new SesameClient(8080);
30
30
 
31
31
  // Build command list
32
32
  const cl = new CommandList();
33
- cl.add_source('my-source', {
33
+ cl.sourceAdd('my-source', {
34
34
  type: 'file',
35
35
  path: '/path/to/video.mp4'
36
36
  });
37
- cl.add_compositor('main', 1920, 1080, false);
37
+ cl.compositorAdd('main', 1920, 1080, false);
38
38
 
39
39
  // Execute commands
40
40
  await client.execute(cl);
@@ -118,21 +118,21 @@ The `CommandList` class provides a fluent API for building command sequences:
118
118
  const cl = new CommandList();
119
119
 
120
120
  // Add source
121
- cl.add_source('cam1', {
121
+ cl.sourceAdd('cam1', {
122
122
  type: 'decklink',
123
123
  deviceIndex: 0
124
124
  });
125
125
 
126
126
  // Add compositor
127
- cl.add_compositor('main', 1920, 1080, false);
127
+ cl.compositorAdd('main', 1920, 1080, false);
128
128
 
129
129
  // Add node to compositor
130
- cl.add_node('main', 'cam1-node', 'source', {
130
+ cl.nodeAdd('main', 'cam1-node', 'source', {
131
131
  sourceId: 'cam1'
132
132
  });
133
133
 
134
134
  // Set properties
135
- cl.set_property(
135
+ cl.propertySet(
136
136
  { compositor: 'main', node: 'cam1-node' },
137
137
  'transform',
138
138
  'position',
@@ -140,7 +140,7 @@ cl.set_property(
140
140
  );
141
141
 
142
142
  // Transport control
143
- cl.add_transport_command('cam1', { type: 'play' });
143
+ cl.transportCommand('cam1', { type: 'play' });
144
144
 
145
145
  // Execute all commands
146
146
  await client.execute(cl);
@@ -155,7 +155,7 @@ import { CommandList, keyframe, EaseKind, sesame } from '@stinkycomputing/sesame
155
155
 
156
156
  const cl = new CommandList();
157
157
 
158
- cl.animate_property(
158
+ cl.propertyAnimate(
159
159
  { compositor: 'main', node: 'cam1-node' }, // property domain
160
160
  'cam1-node', // address
161
161
  'opacity', // property name