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
2023-09-06 11:23:33 -05:00
committed by William Casarin
parent 53734ea483
commit dec07df2c1
4 changed files with 49 additions and 2 deletions

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()
)
}
}