@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.mjs CHANGED
@@ -22056,18 +22056,7 @@ var SesameClient = class extends EventEmitter3 {
22056
22056
  const msg = sesame.v1.recorder.RecorderClipsGetRequest.create();
22057
22057
  const reply = await this.rpc.service.requestRecorderOperation({ recorderId, getClips: msg });
22058
22058
  if (reply.getClipsResponse && reply.getClipsResponse.clips) {
22059
- return reply.getClipsResponse.clips.map((c) => {
22060
- return {
22061
- id: Number(c.id),
22062
- startTime: Number(c.startTimeUs),
22063
- endTime: Number(c.endTimeUs),
22064
- lockedStart: Number(c.lockedStartUs),
22065
- lockedEnd: Number(c.lockedEndUs),
22066
- userTime: c.userTimeUs ? Number(c.userTimeUs) : void 0,
22067
- name: c.name ?? "",
22068
- userData: c.userData
22069
- };
22070
- });
22059
+ return reply.getClipsResponse.clips;
22071
22060
  } else {
22072
22061
  throw new Error(`No clips returned: ${JSON.stringify(reply)}`);
22073
22062
  }
@@ -22096,13 +22085,13 @@ var SesameClient = class extends EventEmitter3 {
22096
22085
  msg.items = playlist.clips.map((clip) => ({
22097
22086
  id: clip.id,
22098
22087
  recorderId: clip.recorderId,
22099
- transitionTimeUs: (clip.transitionTime ?? 0) * 1e3,
22088
+ transitionTimeUs: clip.transitionTimeUs ?? 0,
22100
22089
  transitionType: clip.transitionType ?? sesame.v1.recorder.TransitionType.TRANSITION_TYPE_MIX,
22101
22090
  transitionFadeColor: clip.transitionFadeColor ?? { x: 0, y: 0, z: 0, w: 0 },
22102
22091
  speed: clip.speed ?? 1,
22103
22092
  audioRouting: clip.audioRouting,
22104
- startTimeUs: clip.startTime,
22105
- endTimeUs: clip.endTime
22093
+ startTimeUs: clip.startTimeUs,
22094
+ endTimeUs: clip.endTimeUs
22106
22095
  }));
22107
22096
  await this.rpc.service.requestPlaylistExportStart(msg);
22108
22097
  }