Open Ruddch opened 1 year ago
I would like to have a similar capability, but due to the privacy of the methods, it is not possible.
static func cacheVideo( localURL: URL, remoteURL: URL ) async { guard let data = try? Data(contentsOf: localURL) else { return } let fileManager = FileManager.default let filePath = VideoCacheManager.cachedFilePath(for: remoteURL) do { try fileManager.copyItem(atPath: localURL.path, toPath: filePath) let config = try VideoCacheManager.cachedConfiguration(for: remoteURL) config.add(fragment: 0..<data.count) config.save() } catch { print(error) } }
I would like to have a similar capability, but due to the privacy of the methods, it is not possible.