Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3454df7198 | |||
| 5545e1bc43 | |||
| 367b516abd |
@@ -40,21 +40,39 @@
|
||||
[self detachPlayer];
|
||||
}
|
||||
|
||||
- (instancetype)init
|
||||
- (instancetype)initWithFrame:(CGRect)frame
|
||||
{
|
||||
self = [super init];
|
||||
self = [super initWithFrame:frame];
|
||||
|
||||
if (self)
|
||||
{
|
||||
_player = [[VIMVideoPlayer alloc] init];
|
||||
_player.muted = YES;
|
||||
_player.looping = YES;
|
||||
|
||||
[self attachPlayer];
|
||||
[self commonInit];
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (instancetype)initWithCoder:(NSCoder *)aDecoder
|
||||
{
|
||||
self = [super initWithCoder:aDecoder];
|
||||
|
||||
if (self)
|
||||
{
|
||||
[self commonInit];
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)commonInit
|
||||
{
|
||||
_player = [[VIMVideoPlayer alloc] init];
|
||||
_player.muted = YES;
|
||||
_player.looping = YES;
|
||||
|
||||
[self attachPlayer];
|
||||
}
|
||||
|
||||
#pragma mark - Public API
|
||||
|
||||
- (void)setPlayer:(VIMVideoPlayer *)player
|
||||
|
||||
Reference in New Issue
Block a user