From 97a3a38c0fb07b52e70cba459d1b92273fb57b46 Mon Sep 17 00:00:00 2001 From: mehekj Date: Thu, 11 Nov 2021 16:33:47 -0500 Subject: collapses audio controls when node is resized, preliminary setup for currently playing audio "mini player" --- .../views/collections/collectionLinear/CollectionLinearView.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/client/views/collections/collectionLinear/CollectionLinearView.tsx') diff --git a/src/client/views/collections/collectionLinear/CollectionLinearView.tsx b/src/client/views/collections/collectionLinear/CollectionLinearView.tsx index 18a715edf..35b7fb5e9 100644 --- a/src/client/views/collections/collectionLinear/CollectionLinearView.tsx +++ b/src/client/views/collections/collectionLinear/CollectionLinearView.tsx @@ -12,6 +12,7 @@ import { emptyFunction, returnEmptyDoclist, returnTrue, Utils } from '../../../. import { DragManager } from '../../../util/DragManager'; import { Transform } from '../../../util/Transform'; import { Colors, Shadows } from '../../global/globalEnums'; +import { AudioBox } from '../../nodes/AudioBox'; import { DocumentLinksButton } from '../../nodes/DocumentLinksButton'; import { DocumentView } from '../../nodes/DocumentView'; import { LinkDescriptionPopup } from '../../nodes/LinkDescriptionPopup'; @@ -219,6 +220,14 @@ export class CollectionLinearView extends CollectionSubView(LinearDocument) { : null} + {/* TODO: add small player for single clip, dropdown sort of expandable menu for multiple clips + add onclick show audio similar to follow link behavior + add button to close out audio from currently playing */} + {AudioBox.CurrentlyPlaying && AudioBox.CurrentlyPlaying.length != 0 && StrCast(this.layoutDoc.title) === "docked buttons" ? + + Currently listening to: {AudioBox.CurrentlyPlaying.map((clip) => clip.dataDoc.title + ", ")} + + : null} ; } -- cgit v1.2.3-70-g09d2