@pictor-sdk/video-android 0.1.3 → 0.1.4

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
@@ -586,6 +586,7 @@ function compositionSpikeSpec(project, mix, resolve) {
586
586
  const playlist = playlistOf(project);
587
587
  const items = [];
588
588
  const unsupported = playlist.unsupported.map((u) => `${u.clipId}: ${u.reason}`);
589
+ const clips = new Map(project.clips.map((clip) => [clip.id, clip]));
589
590
  for (const item of playlist.items) {
590
591
  const uri = resolve(item.source);
591
592
  if (uri === null) {
@@ -596,6 +597,8 @@ function compositionSpikeSpec(project, mix, resolve) {
596
597
  uri,
597
598
  startUs: Number(item.startUs),
598
599
  endUs: Number(item.endUs),
600
+ sourceDurationUs: clips.get(item.clipId)?.metadata.duration,
601
+ timelineEndUs: Number(item.timelineEndUs),
599
602
  speed: item.speed
600
603
  });
601
604
  }