mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
[ASVideoPlayerNode] Expose the placeholder image for the video player node
This commit is contained in:
@@ -76,6 +76,9 @@ static void *ASVideoPlayerNodeContext = &ASVideoPlayerNodeContext;
|
||||
@end
|
||||
|
||||
@implementation ASVideoPlayerNode
|
||||
|
||||
@dynamic placeholderImageURL;
|
||||
|
||||
- (instancetype)init
|
||||
{
|
||||
if (!(self = [super init])) {
|
||||
@@ -771,6 +774,16 @@ static void *ASVideoPlayerNodeContext = &ASVideoPlayerNodeContext;
|
||||
return _videoNode.shouldAggressivelyRecoverFromStall;
|
||||
}
|
||||
|
||||
- (void) setPlaceholderImageURL:(NSURL *)placeholderImageURL
|
||||
{
|
||||
_videoNode.URL = placeholderImageURL;
|
||||
}
|
||||
|
||||
- (NSURL*) placeholderImageURL
|
||||
{
|
||||
return _videoNode.URL;
|
||||
}
|
||||
|
||||
- (void)setShouldAggressivelyRecoverFromStall:(BOOL)shouldAggressivelyRecoverFromStall
|
||||
{
|
||||
if (_shouldAggressivelyRecoverFromStall == shouldAggressivelyRecoverFromStall) {
|
||||
|
||||
Reference in New Issue
Block a user