Add debug view to App component
This commit is contained in:
parent
fb3a497119
commit
65cc365717
|
@ -249,6 +249,21 @@ function App(): JSX.Element {
|
||||||
height={thumbnailHeight}
|
height={thumbnailHeight}
|
||||||
/>
|
/>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue