Add clip player logic

This commit is contained in:
2022-05-01 12:34:03 +08:00
parent a0a1b52b3f
commit a0547095e2
6 changed files with 237 additions and 18 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ class ClipList extends Component<IClipListProps> {
}
private getClipInfo(clip: Clip): string {
let fps = Math.floor(clip.frames.length / clip.time);
let fps = Math.round((clip.frames.length - 1) / clip.time);
if (isNaN(fps)) fps = 0;
return `${this.parseTime(clip.time)} ${fps}fps`;
}