mirror of
https://github.com/danog/Telegram.git
synced 2024-12-02 09:27:55 +01:00
31 lines
807 B
Objective-C
31 lines
807 B
Objective-C
#import "TGInlineVideoModel.h"
|
|
|
|
#import "TGInlineVideoView.h"
|
|
|
|
@implementation TGInlineVideoModel
|
|
|
|
- (Class)viewClass {
|
|
return [TGInlineVideoView class];
|
|
}
|
|
|
|
- (void)bindViewToContainer:(UIView *)container viewStorage:(TGModernViewStorage *)viewStorage {
|
|
[super bindViewToContainer:container viewStorage:viewStorage];
|
|
|
|
TGInlineVideoView *view = (TGInlineVideoView *)[self boundView];
|
|
[view setVideoPathSignal:_videoPathSignal];
|
|
}
|
|
|
|
- (void)unbindView:(TGModernViewStorage *)viewStorage {
|
|
[(TGInlineVideoView *)[self boundView] setVideoPathSignal:nil];
|
|
|
|
[super unbindView:viewStorage];
|
|
}
|
|
|
|
- (void)setVideoPathSignal:(SSignal *)videoPathSignal {
|
|
_videoPathSignal = videoPathSignal;
|
|
|
|
[(TGInlineVideoView *)[self boundView] setVideoPathSignal:videoPathSignal];
|
|
}
|
|
|
|
@end
|