class
VideoPlayerProxyContext
UI(node)代理
1
2
3
4
5
6
7
8
9
10
11
12
13
14
private let queue: Queue
var updateVideoInHierarchy: ((Bool) -> Void)?
/// UI
var node: MediaPlayerNode? {
didSet {
self.node?.takeFrameAndQueue = self.takeFrameAndQueue
self.node?.state = state
self.updateVideoInHierarchy?(node?.videoInHierarchy ?? false)
self.node?.updateVideoInHierarchy = { [weak self] value in
self?.updateVideoInHierarchy?(value)
}
}
}