forked from zelo72/mastodon-ios
chore: add missing renaming
This commit is contained in:
parent
19a14b7761
commit
03496a4e97
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue