chore: add missing renaming

This commit is contained in:
CMK 2021-03-11 19:23:44 +08:00
parent 19a14b7761
commit 03496a4e97
1 changed files with 4 additions and 4 deletions

View File

@ -201,8 +201,8 @@ extension StatusSection {
let videoPlayerViewModel = dependency.context.videoPlaybackService.dequeueVideoPlayerViewModel(for: videoAttachment) let videoPlayerViewModel = dependency.context.videoPlaybackService.dequeueVideoPlayerViewModel(for: videoAttachment)
{ {
let parent = cell.delegate?.parent() let parent = cell.delegate?.parent()
let mosaicPlayerView = cell.statusView.playerContainerView let playerContainerView = cell.statusView.playerContainerView
let playerViewController = mosaicPlayerView.setupPlayer( let playerViewController = playerContainerView.setupPlayer(
aspectRatio: videoPlayerViewModel.videoSize, aspectRatio: videoPlayerViewModel.videoSize,
maxSize: playerViewMaxSize, maxSize: playerViewMaxSize,
parent: parent parent: parent
@ -211,8 +211,8 @@ extension StatusSection {
playerViewController.player = videoPlayerViewModel.player playerViewController.player = videoPlayerViewModel.player
playerViewController.showsPlaybackControls = videoPlayerViewModel.videoKind != .gif playerViewController.showsPlaybackControls = videoPlayerViewModel.videoKind != .gif
mosaicPlayerView.gifIndicatorLabel.isHidden = videoPlayerViewModel.videoKind != .gif playerContainerView.gifIndicatorLabel.isHidden = videoPlayerViewModel.videoKind != .gif
mosaicPlayerView.isHidden = false playerContainerView.isHidden = false
} else { } else {
cell.statusView.playerContainerView.playerViewController.player?.pause() cell.statusView.playerContainerView.playerViewController.player?.pause()