Fixed an issue where the preview image wasn't resizing correctly when the video was playing

This commit is contained in:
Gareth Reese 2016-03-03 13:39:47 +00:00
parent 7c20ba0cdf
commit 57844cb94d

View File

@ -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];
}
}
}