video: add VideoController, which hold cached metadata and mute states

Closes: https://github.com/damus-io/damus/pull/1539
Reviewed-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
Bryan Montz authored and William Casarin committed 2023-09-07 10:33:12 -07:00
1 parent 53734ea483
commit dec07df2c1
4 files changed
+49 -2

No files matched your search

+3 -1
View File
@@ -33,6 +33,7 @@ struct DamusState {
let nav: NavigationCoordinator
let user_search_cache: UserSearchCache
let music: MusicController?
let video: VideoController
@discardableResult
func add_zap(zap: Zapping) -> Bool {
@@ -89,7 +90,8 @@ struct DamusState {
wallet: WalletModel(settings: UserSettingsStore()),
nav: NavigationCoordinator(),
user_search_cache: user_search_cache,
music: nil
music: nil,
video: VideoController()
)
}
}