@stinkycomputing/sesame-api-client 1.4.1-alpha.5 → 1.4.1-alpha.7

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/dist/index.cjs CHANGED
@@ -22108,18 +22108,7 @@ var SesameClient = class extends import_events3.EventEmitter {
22108
22108
  const msg = sesame.v1.recorder.RecorderClipsGetRequest.create();
22109
22109
  const reply = await this.rpc.service.requestRecorderOperation({ recorderId, getClips: msg });
22110
22110
  if (reply.getClipsResponse && reply.getClipsResponse.clips) {
22111
- return reply.getClipsResponse.clips.map((c) => {
22112
- return {
22113
- id: Number(c.id),
22114
- startTime: Number(c.startTimeUs),
22115
- endTime: Number(c.endTimeUs),
22116
- lockedStart: Number(c.lockedStartUs),
22117
- lockedEnd: Number(c.lockedEndUs),
22118
- userTime: c.userTimeUs ? Number(c.userTimeUs) : void 0,
22119
- name: c.name ?? "",
22120
- userData: c.userData
22121
- };
22122
- });
22111
+ return reply.getClipsResponse.clips;
22123
22112
  } else {
22124
22113
  throw new Error(`No clips returned: ${JSON.stringify(reply)}`);
22125
22114
  }
@@ -22148,13 +22137,13 @@ var SesameClient = class extends import_events3.EventEmitter {
22148
22137
  msg.items = playlist.clips.map((clip) => ({
22149
22138
  id: clip.id,
22150
22139
  recorderId: clip.recorderId,
22151
- transitionTimeUs: (clip.transitionTime ?? 0) * 1e3,
22140
+ transitionTimeUs: clip.transitionTimeUs ?? 0,
22152
22141
  transitionType: clip.transitionType ?? sesame.v1.recorder.TransitionType.TRANSITION_TYPE_MIX,
22153
22142
  transitionFadeColor: clip.transitionFadeColor ?? { x: 0, y: 0, z: 0, w: 0 },
22154
22143
  speed: clip.speed ?? 1,
22155
22144
  audioRouting: clip.audioRouting,
22156
- startTimeUs: clip.startTime,
22157
- endTimeUs: clip.endTime
22145
+ startTimeUs: clip.startTimeUs,
22146
+ endTimeUs: clip.endTimeUs
22158
22147
  }));
22159
22148
  await this.rpc.service.requestPlaylistExportStart(msg);
22160
22149
  }