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:
committed by
William Casarin
parent
53734ea483
commit
dec07df2c1
@@ -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()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user