Created
June 23, 2021 20:57
-
-
Save jasonLaster/e4947537466db1e2b9a02ac7ecc7e2c2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/ui/actions/timeline.ts b/src/ui/actions/timeline.ts | |
index 1a92b883..9b6bc505 100644 | |
--- a/src/ui/actions/timeline.ts | |
+++ b/src/ui/actions/timeline.ts | |
@@ -361,7 +361,7 @@ function playback(startTime: number, endTime: number): UIThunkAction { | |
dispatch(precacheScreenshots(nextGraphicsTime)); | |
}; | |
const shouldContinuePlayback = () => selectors.getPlayback(getState()); | |
- prepareNextGraphics(); | |
+ // prepareNextGraphics(); | |
Video.play(); | |
@@ -390,13 +390,13 @@ function playback(startTime: number, endTime: number): UIThunkAction { | |
if (currentTime >= nextGraphicsTime) { | |
try { | |
- let maybeNextGraphics = await Promise.race([nextGraphicsPromise, waitForTime(500)]); | |
- if (!maybeNextGraphics) { | |
- dispatch(setPlaybackStalled(true)); | |
- maybeNextGraphics = await nextGraphicsPromise; | |
- dispatch(setPlaybackStalled(false)); | |
- } | |
- const { screen, mouse } = maybeNextGraphics; | |
+ // let maybeNextGraphics = await Promise.race([nextGraphicsPromise, waitForTime(500)]); | |
+ // if (!maybeNextGraphics) { | |
+ // dispatch(setPlaybackStalled(true)); | |
+ // maybeNextGraphics = await nextGraphicsPromise; | |
+ // dispatch(setPlaybackStalled(false)); | |
+ // } | |
+ // const { screen, mouse } = maybeNextGraphics; | |
if (!shouldContinuePlayback()) { | |
return; | |
@@ -417,7 +417,7 @@ function playback(startTime: number, endTime: number): UIThunkAction { | |
); | |
} | |
- paintGraphics(screen, mouse, true); | |
+ // paintGraphics(screen, mouse, true); | |
} catch (e) {} | |
prepareNextGraphics(); | |
diff --git a/src/ui/components/Timeline/index.tsx b/src/ui/components/Timeline/index.tsx | |
index 0e63802b..16031be9 100644 | |
--- a/src/ui/components/Timeline/index.tsx | |
+++ b/src/ui/components/Timeline/index.tsx | |
@@ -145,12 +145,16 @@ class Timeline extends Component<PropsFromRedux> { | |
} = this.props; | |
const disabled = !videoUrl && features.videoPlayback; | |
const replay = () => { | |
+ console.log("timeline::", { disabled }); | |
+ | |
if (disabled) return; | |
clearPendingComment(); | |
replayPlayback(); | |
}; | |
const togglePlayback = () => { | |
+ console.log("timeline::", { disabled }); | |
+ | |
if (disabled) return; | |
clearPendingComment(); | |
@@ -169,6 +173,8 @@ class Timeline extends Component<PropsFromRedux> { | |
); | |
} | |
+ console.log("timeline::", { disabled }); | |
+ | |
return ( | |
<div className="commands"> | |
<button onClick={togglePlayback} disabled={disabled}> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment