mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
[ASVideoNode] Addition of reset method to return to initial state (#2119)
* [ASVideoNode] Addition of reset method to allow video node to return to initial state of placeholder and play button * Implemented pull request review comments for code style
This commit is contained in:
@@ -668,6 +668,11 @@ static void *ASVideoPlayerNodeContext = &ASVideoPlayerNodeContext;
|
||||
return [_videoNode isPlaying];
|
||||
}
|
||||
|
||||
- (void)resetToPlaceholder
|
||||
{
|
||||
[_videoNode resetToPlaceholder];
|
||||
}
|
||||
|
||||
- (NSArray *)controlsForLayoutSpec
|
||||
{
|
||||
NSMutableArray *controls = [[NSMutableArray alloc] initWithCapacity:_cachedControls.count];
|
||||
|
||||
Reference in New Issue
Block a user