aboutsummaryrefslogtreecommitdiff
path: root/src/client/views
diff options
context:
space:
mode:
authorMichael Foiani <sotech117@michaels-mbp-3.devices.brown.edu>2022-05-04 02:00:55 -0400
committerMichael Foiani <sotech117@michaels-mbp-3.devices.brown.edu>2022-05-04 02:00:55 -0400
commit4dc4b0939d4e4afbc9f6db999ff80d434ef4ccc6 (patch)
tree7e30facae8690400c1a291a005e51939dc9d5811 /src/client/views
parent91746b4e9c570a7579e3396e2e31c73d8fa9915e (diff)
Added the presentation mode back in. However, pres isn't being recreated smoothly after being stored in the db.
Diffstat (limited to 'src/client/views')
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx6
-rw-r--r--src/client/views/nodes/RecordingBox/RecordingView.tsx3
2 files changed, 4 insertions, 5 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
index f74e526b6..8bcf6f46f 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
@@ -965,8 +965,10 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection
@action
setPan(panX: number, panY: number, panTime: number = 0, clamp: boolean = false) {
- // set the current FFview to the tab being panned.
- RecordingApi.Instance.setRecordingFFView(this)
+ // set the current respective FFview to the tab being panned.
+ RecordingApi.Instance.setRecordingFFView(this);
+ // TODO: make this based off the specific recording FFView
+ Doc.UserDoc()?.presentationMode !== 'recording' && RecordingApi.Instance.setPlayFFView(this);
if (!this.isAnnotationOverlay && clamp) {
// this section wraps the pan position, horizontally and/or vertically whenever the content is panned out of the viewing bounds
diff --git a/src/client/views/nodes/RecordingBox/RecordingView.tsx b/src/client/views/nodes/RecordingBox/RecordingView.tsx
index 51cc44941..f7446b556 100644
--- a/src/client/views/nodes/RecordingBox/RecordingView.tsx
+++ b/src/client/views/nodes/RecordingBox/RecordingView.tsx
@@ -160,7 +160,6 @@ export function RecordingView(props: IRecordingViewProps) {
videoRecorder.current.onstart = (event: any) => {
setRecording(true);
- // TODO: update names
// RecordingApi.Instance.clear();
RecordingApi.Instance.start();
}
@@ -176,7 +175,6 @@ export function RecordingView(props: IRecordingViewProps) {
videoChunks = []
setRecording(false);
setFinished(true);
- console.log("finished recording")
RecordingApi.Instance.pause();
}
@@ -188,7 +186,6 @@ export function RecordingView(props: IRecordingViewProps) {
// reset the temporary chunks
videoChunks = []
setRecording(false);
- console.log("paused recording")
RecordingApi.Instance.pause();
}