Skip to content

Commit

Permalink
Revert "fix: PR Feedback"
Browse files Browse the repository at this point in the history
This reverts commit 4484afd.
  • Loading branch information
Matthieu-dgl committed Oct 18, 2024
1 parent 4484afd commit 915becc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kDrive/UI/View/Files/Preview/VideoCollectionViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ class VideoCollectionViewCell: PreviewCollectionViewCell {
floatingPanelController?.dismiss(animated: true)
parentViewController?.present(navController, animated: true) {
playerViewController.player?.play()
let interval = CMTime(seconds: 1.0, preferredTimescale: CMTimeScale(NSEC_PER_SEC))
player.addPeriodicTimeObserver(forInterval: interval, queue: .main) { [weak self] _ in
self?.setNowPlayingMetadata()
}
}
}

Expand Down

0 comments on commit 915becc

Please sign in to comment.