mirror of https://github.com/axmolengine/axmol.git
manually maintain reference count (#20329)
This commit is contained in:
parent
e3c636c23c
commit
9049ddbe7c
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue