mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-10 22:20:14 +00:00
fix(studio): fit preview reset to composition dimensions (#1085)
* fix(studio): fit preview reset to composition dimensions * fix(core): keep runtime root resolution explicit * fix(studio): resume playback after keep-playing seek
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
export function shouldResumeForwardPlaybackAfterSeek(input: {
|
||||
keepPlaying: boolean;
|
||||
wasReverseShuttle: boolean;
|
||||
storeWasPlaying: boolean;
|
||||
duration: number;
|
||||
nextTime: number;
|
||||
}): boolean {
|
||||
return (
|
||||
input.keepPlaying &&
|
||||
!input.wasReverseShuttle &&
|
||||
input.storeWasPlaying &&
|
||||
(input.duration <= 0 || input.nextTime < input.duration)
|
||||
);
|
||||
}
|
||||
|
||||
export function shouldStopAfterSeek(input: {
|
||||
keepPlaying: boolean;
|
||||
wasReverseShuttle: boolean;
|
||||
}): boolean {
|
||||
return !input.keepPlaying || input.wasReverseShuttle;
|
||||
}
|
||||
Reference in New Issue
Block a user