Skip to content

Commit 07428f5

Browse files
committed
fix: update audio player to display current left time in progress bar
1 parent fde944d commit 07428f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ts/components/conversation/H5AudioPlayer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export const StyledH5AudioPlayer = styled(H5AudioPlayer)<{ dropShadow?: boolean
4949
}
5050
5151
.rhap_current-time,
52+
.rhap_current-left-time,
5253
.rhap_total-time {
5354
margin: 0 5px 0 4px;
5455
flex-shrink: 0;
@@ -264,7 +265,7 @@ export const AudioPlayerWithEncryptedFile = (props: {
264265
/>
265266
</StyledSpeedButton>,
266267
]}
267-
customProgressBarSection={[RHAP_UI.DURATION, RHAP_UI.PROGRESS_BAR]}
268+
customProgressBarSection={[RHAP_UI.CURRENT_LEFT_TIME, RHAP_UI.PROGRESS_BAR]}
268269
customIcons={{
269270
play: <SessionIcon iconType="play" iconSize="small" iconColor={iconColor} />,
270271
pause: <SessionIcon iconType="pause" iconSize="small" iconColor={iconColor} />,

0 commit comments

Comments
 (0)