Video loading errors reporting

This commit is contained in:
Arkadiusz Fal
2022-06-30 00:44:32 +02:00
parent dc346f6c25
commit 8358dd50aa
5 changed files with 30 additions and 7 deletions

View File

@@ -47,6 +47,10 @@ extension PlayerModel {
}
}
.onCompletion(onCompletion)
.onFailure { [weak self] responseError in
self?.navigation.presentAlert(title: "Could not load streams", message: responseError.userMessage)
self?.videoBeingOpened = nil
}
}
func streamsWithInstance(instance: Instance, streams: [Stream]) -> [Stream] {