mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 01:18:34 +00:00
Ok fixed clip_offset to use media id's instead
This commit is contained in:
1 parent
2dac194072
commit
e272cbfed1
1 file changed
+5
-5
@@ -1,25 +1,25 @@
|
||||
export interface ClipOffset {
|
||||
version: number;
|
||||
type: "transform" | "audio" | "animation";
|
||||
clip_uuid: number;
|
||||
media_id: number;
|
||||
start_offset: number; // in milliseconds (ms)
|
||||
}
|
||||
|
||||
export class ClipOffset implements ClipOffset {
|
||||
version: number;
|
||||
type: "transform" | "audio" | "animation";
|
||||
clip_uuid: number;
|
||||
media_id: number;
|
||||
start_offset: number; // in milliseconds (ms)
|
||||
|
||||
constructor(
|
||||
version: number,
|
||||
type: "transform" | "audio" | "animation",
|
||||
clip_uuid: number,
|
||||
media_id: number,
|
||||
start_offset: number,
|
||||
) {
|
||||
this.version = version;
|
||||
this.type = type;
|
||||
this.clip_uuid = clip_uuid;
|
||||
this.media_id = media_id;
|
||||
this.start_offset = start_offset;
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ export class ClipOffset implements ClipOffset {
|
||||
return JSON.stringify({
|
||||
version: this.version,
|
||||
type: this.type,
|
||||
clip_uuid: this.clip_uuid,
|
||||
media_id: this.media_id,
|
||||
start_offset: this.start_offset,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user