minor fixis

This commit is contained in:
Erekle 2016-05-14 17:01:06 +04:00
parent e30584d215
commit f30bf32a47
2 changed files with 8 additions and 5 deletions

View File

@ -58,6 +58,8 @@ static void *ASVideoPlayerNodeContext = &ASVideoPlayerNodeContext;
BOOL _muted; BOOL _muted;
int32_t _periodicTimeObserverTimescale; int32_t _periodicTimeObserverTimescale;
NSString *_gravity; NSString *_gravity;
UIColor *_defaultControlsColor;
} }
@end @end
@ -105,6 +107,7 @@ static void *ASVideoPlayerNodeContext = &ASVideoPlayerNodeContext;
- (void)privateInit - (void)privateInit
{ {
_defaultControlsColor = [UIColor whiteColor];
_cachedControls = [[NSMutableDictionary alloc] init]; _cachedControls = [[NSMutableDictionary alloc] init];
_videoNode = [[ASVideoNode alloc] init]; _videoNode = [[ASVideoNode alloc] init];
@ -220,7 +223,7 @@ static void *ASVideoPlayerNodeContext = &ASVideoPlayerNodeContext;
if (_delegateFlags.delegatePlaybackButtonTint) { if (_delegateFlags.delegatePlaybackButtonTint) {
_playbackButtonNode.tintColor = [_delegate videoPlayerNodePlaybackButtonTint:self]; _playbackButtonNode.tintColor = [_delegate videoPlayerNodePlaybackButtonTint:self];
} else { } else {
_playbackButtonNode.tintColor = [UIColor whiteColor]; _playbackButtonNode.tintColor = _defaultControlsColor;
} }
[_playbackButtonNode addTarget:self action:@selector(playbackButtonTapped:) forControlEvents:ASControlNodeEventTouchUpInside]; [_playbackButtonNode addTarget:self action:@selector(playbackButtonTapped:) forControlEvents:ASControlNodeEventTouchUpInside];
[_cachedControls setObject:_playbackButtonNode forKey:@(ASVideoPlayerNodeControlTypePlaybackButton)]; [_cachedControls setObject:_playbackButtonNode forKey:@(ASVideoPlayerNodeControlTypePlaybackButton)];
@ -322,7 +325,7 @@ static void *ASVideoPlayerNodeContext = &ASVideoPlayerNodeContext;
} else { } else {
options = @{ options = @{
NSFontAttributeName : [UIFont systemFontOfSize:12.0], NSFontAttributeName : [UIFont systemFontOfSize:12.0],
NSForegroundColorAttributeName: [UIColor whiteColor] NSForegroundColorAttributeName: _defaultControlsColor
}; };
} }