[ASVideoPlayerNode] Expose the placeholder image for the video player node

This commit is contained in:
Gareth Reese
2016-07-01 15:15:10 +01:00
parent 1d356242fd
commit 09a344b669
2 changed files with 14 additions and 0 deletions

View File

@@ -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) {