Tune minimum duration of media which position is stored

This commit is contained in:
Ilya Laktyushin 2021-07-07 02:24:18 +03:00
parent eb480074fd
commit d4f1eedc3c
2 changed files with 2 additions and 2 deletions

View File

@ -639,7 +639,7 @@ final class UniversalVideoGalleryItemNode: ZoomableContentGalleryItemNode {
}
self.mediaPlaybackStateDisposable.set(throttledSignal.start(next: { status in
if let status = status, status.duration >= 60.0 * 20.0 {
if let status = status, status.duration >= 60.0 * 10.0 {
var timestamp: Double?
if status.timestamp > 5.0 && status.timestamp < status.duration - 5.0 {
timestamp = status.timestamp

View File

@ -417,7 +417,7 @@ public final class MediaManagerImpl: NSObject, MediaManager {
if let (account, stateOrLoading, type) = accountStateAndType {
switch type {
case .music:
minimumStoreDuration = 15.0 * 60.0
minimumStoreDuration = 10.0 * 60.0
case .voice:
minimumStoreDuration = 5.0 * 60.0
case .file: