diff --git a/AudioCuesheetEditor/Shared/Audio/AudioPlayer.razor b/AudioCuesheetEditor/Shared/Audio/AudioPlayer.razor
index df921676..11224223 100644
--- a/AudioCuesheetEditor/Shared/Audio/AudioPlayer.razor
+++ b/AudioCuesheetEditor/Shared/Audio/AudioPlayer.razor
@@ -38,7 +38,11 @@ along with Foobar. If not, see
{
@String.Format("--{0}--{1}--", CultureInfo.CurrentCulture.DateTimeFormat.TimeSeparator, CultureInfo.CurrentCulture.DateTimeFormat.TimeSeparator)
}
-
+
+
+ @GetSliderTimeValue()
+
+
@if (_playbackService.TotalTime.HasValue)
{
@_playbackService.TotalTime.Value.ToString("hh\\:mm\\:ss")
@@ -68,8 +72,6 @@ along with Foobar. If not, see
@code {
- //TODO: Slider should display the value in tooltip (like vlc does)
-
double sliderValue;
HotKeysContext? hotKeysContext;
@@ -135,4 +137,17 @@ along with Foobar. If not, see
}
InvokeAsync(StateHasChanged);
}
+
+ string GetSliderTimeValue()
+ {
+ var time = sliderValue * _playbackService.TotalTime / 100.0;
+ if (time.HasValue)
+ {
+ return time.Value.ToString(@"hh\:mm\:ss");
+ }
+ else
+ {
+ return string.Empty;
+ }
+ }
}