@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/android/src/main/java/dev/pictor/video/CompositionSeek.kt +8 -0
- package/android/src/main/java/dev/pictor/video/CompositionSpike.kt +23 -13
- package/android/src/main/java/dev/pictor/video/CompositionVideoItem.kt +16 -0
- package/android/src/main/java/dev/pictor/video/CompositionWindow.kt +17 -0
- package/android/src/main/java/dev/pictor/video/FrameClock.kt +6 -1
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/compositionSpike.ts +9 -0
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
|
}
|