mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-19 04:39:36 +00:00
Fixed an issue where the preview image wasn't resizing correctly when the video was playing
This commit is contained in:
parent
7c20ba0cdf
commit
57844cb94d
@ -43,8 +43,7 @@
|
||||
@implementation ASVideoNode
|
||||
|
||||
//TODO: Have a bash at supplying a preview image node so that we're deferring the construction of the video as it eats memory at the moment
|
||||
|
||||
//TODO: Have a look at any unit tests
|
||||
// - or could keep the API the same and try to avoid starting up the video player until we need to
|
||||
|
||||
//TODO: URL-based streams show a black square when paused, the AVAsset ones pause fine
|
||||
|
||||
@ -232,6 +231,7 @@
|
||||
_currentPlayerItem.tracks[0].assetTrack.asset) {
|
||||
_asset = _currentPlayerItem.tracks[0].assetTrack.asset;
|
||||
[self setPlaceholderImagefromAsset:_asset];
|
||||
[self setNeedsLayout];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user