mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-18 01:14:22 +02:00
refactor scrobbling to use duration instead of progress (#2010)
- add scrobble status debug and indicator - add force / reset scrobble
This commit is contained in:
@@ -4,6 +4,7 @@ import { lazy, Suspense } from 'react';
|
||||
import { PlayerbarSeekSlider } from './playerbar-seek-slider';
|
||||
import styles from './playerbar-slider.module.css';
|
||||
|
||||
import { ScrobbleStatus } from '/@/renderer/features/player/components/scrobble-status';
|
||||
import {
|
||||
useAppStore,
|
||||
useAppStoreActions,
|
||||
@@ -41,17 +42,8 @@ export const PlayerbarSlider = () => {
|
||||
return (
|
||||
<>
|
||||
<div className={styles.sliderContainer}>
|
||||
<div className={styles.sliderValueWrapper}>
|
||||
<Text
|
||||
className={PlaybackSelectors.elapsedTime}
|
||||
fw={600}
|
||||
isMuted
|
||||
isNoSelect
|
||||
size="xs"
|
||||
style={{ userSelect: 'none' }}
|
||||
>
|
||||
{formattedTime}
|
||||
</Text>
|
||||
<div className={styles.sliderValueWrapperElapsed}>
|
||||
<ScrobbleStatus formattedTime={formattedTime} />
|
||||
</div>
|
||||
<div className={styles.sliderWrapper}>
|
||||
{isWaveform ? (
|
||||
|
||||
Reference in New Issue
Block a user