Add debug view to App component

This commit is contained in:
Rob Watson 2021-12-11 17:25:30 +01:00
parent fb3a497119
commit 65cc365717
1 changed files with 15 additions and 0 deletions

View File

@ -249,6 +249,21 @@ function App(): JSX.Element {
height={thumbnailHeight}
/>
</div>
<ul style={{ listStyleType: 'none' } as React.CSSProperties}>
<li>Frames: {mediaSet.audioFrames}</li>
<li>
Viewport (frames): {viewport.start} to {viewport.end}
</li>
<li>
Selection (frames): {selection.start} to {selection.end}
</li>
<li>
Position (frames):{' '}
{Math.round(mediaSet.audioFrames * (position.percent / 100))}
</li>
<li>Position (seconds): {position.currentTime}</li>
<li></li>
</ul>
</div>
</>
);