Skip to content

Commit

Permalink
MediaScrubProgressBar: Revert hack introduced in 3.5.9
Browse files Browse the repository at this point in the history
The hack is no longer needed as we switched to libvlc 4.0.

Closes #1818
  • Loading branch information
Diogo Simao Marques committed Sep 18, 2024
1 parent 36f872d commit 836a925
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,9 @@ class MediaScrubProgressBar: UIStackView {
}

func updateCurrentTime() {
let mediaDuration = playbackService.mediaDuration

let timeToDisplay = UserDefaults.standard.bool(forKey: kVLCShowRemainingTime)
? VLCTime(number: NSNumber(value: -(Int32(mediaDuration) - playbackService.playedTime().intValue))).stringValue
: VLCTime(number: NSNumber.init(value:mediaDuration)).stringValue
? playbackService.remainingTime().stringValue
: playbackService.mediaLength.stringValue

remainingTimeButton.setTitle(timeToDisplay, for: .normal)
remainingTimeButton.setNeedsLayout()
Expand Down

0 comments on commit 836a925

Please sign in to comment.