diff options
| author | anika <anika.ahluwalia@gmail.com> | 2021-02-11 16:08:43 -0500 |
|---|---|---|
| committer | anika <anika.ahluwalia@gmail.com> | 2021-02-11 16:08:43 -0500 |
| commit | 77b7c3927c454a829d7dbb2748ad322b146265a7 (patch) | |
| tree | 2c83cced52fabb83c030ee38b8150d5f964fcefe /src/client/views/nodes/PresBox.tsx | |
| parent | aede6226aa367ff3137b126e0d0e23e1b2ca84db (diff) | |
| parent | ee3561896e1bbfae4f81bce109fa3df2618cfbc8 (diff) | |
Merge branch 'filters' of https://github.com/browngraphicslab/Dash-Web into filters
Diffstat (limited to 'src/client/views/nodes/PresBox.tsx')
| -rw-r--r-- | src/client/views/nodes/PresBox.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/PresBox.tsx b/src/client/views/nodes/PresBox.tsx index 8d0283a12..b6feace12 100644 --- a/src/client/views/nodes/PresBox.tsx +++ b/src/client/views/nodes/PresBox.tsx @@ -715,9 +715,9 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps, PresBoxSchema> if (audio) { audio.mediaStart = "manual"; audio.mediaStop = "manual"; - audio.presStartTime = NumCast(doc.anchorStartTime); - audio.presEndTime = NumCast(doc.anchorEndTime); - audio.presDuration = NumCast(doc.anchorEndTime) - NumCast(doc.anchorStartTime); + audio.presStartTime = NumCast(doc.audioStart, NumCast(doc.videoStart)); + audio.presEndTime = NumCast(doc.audioEnd, NumCast(doc.videoEnd)); + audio.presDuration = audio.presStartTime - audio.presEndTime; TabDocView.PinDoc(audio, { audioRange: true }); setTimeout(() => this.removeDocument(doc), 0); return false; |
