Watch Next behavior and settings

This commit is contained in:
Arkadiusz Fal
2022-12-18 19:39:03 +01:00
parent b90c856e21
commit 39fc23c5dc
23 changed files with 487 additions and 451 deletions

View File

@@ -327,6 +327,10 @@ struct Video: Identifiable, Equatable, Hashable {
return path.contains(".") ? path.components(separatedBy: ".").last?.uppercased() : nil
}
var isShareable: Bool {
!isLocal || localStreamIsRemoteURL
}
private var localStreamURLComponents: URLComponents? {
guard let localStream else { return nil }
return URLComponents(url: localStream.localURL, resolvingAgainstBaseURL: false)