Merge branch 'main' into UI-Meeting

This commit is contained in:
2024-06-07 17:37:19 +02:00
11 changed files with 71 additions and 55 deletions

View File

@@ -50,7 +50,6 @@ export default function Player(props: PlayerProps) {
const _wavesurfer = WaveSurfer.create({
container: waveformRef.current,
peaks: [props.waveform.data],
height: "auto",
duration: Math.floor(props.mediaDuration / 1000),
media: props.media,
@@ -161,7 +160,7 @@ export default function Player(props: PlayerProps) {
const timeLabel = () => {
if (props.mediaDuration && Math.floor(props.mediaDuration / 1000) > 0)
return `${formatTime(currentTime)}/${formatTime(
Math.floor(props.mediaDuration / 1000),
Math.floor(props.mediaDuration / 1000)
)}`;
return "";
};