manually maintain reference count (#20329)

This commit is contained in:
minggo 2019-11-15 11:39:49 +08:00 committed by GitHub
parent e3c636c23c
commit 9049ddbe7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ typedef NS_ENUM(NSInteger, PlayerbackState) {
PlayerbackStateCompleted
};
@property (strong, nonatomic) AVPlayerViewController * playerController;
@property (assign, nonatomic) AVPlayerViewController * playerController;
- (void) setFrame:(int) left :(int) top :(int) width :(int) height;
- (void) setURL:(int) videoSource :(std::string&) videoUrl;
@ -87,7 +87,7 @@ typedef NS_ENUM(NSInteger, PlayerbackState) {
-(id)init:(void*)videoPlayer
{
if (self = [super init]) {
self.playerController = [[AVPlayerViewController new] autorelease];
self.playerController = [AVPlayerViewController new];
[self setRepeatEnabled:FALSE];
[self showPlaybackControls:TRUE];