mirror of https://github.com/axmolengine/axmol.git
parent
fafd16e949
commit
fae3ef8e48
|
@ -87,7 +87,7 @@ typedef NS_ENUM(NSInteger, PlayerbackState) {
|
||||||
-(id)init:(void*)videoPlayer
|
-(id)init:(void*)videoPlayer
|
||||||
{
|
{
|
||||||
if (self = [super init]) {
|
if (self = [super init]) {
|
||||||
self.playerController = [AVPlayerViewController new];
|
self.playerController = [[AVPlayerViewController new] autorelease];
|
||||||
|
|
||||||
[self setRepeatEnabled:FALSE];
|
[self setRepeatEnabled:FALSE];
|
||||||
[self showPlaybackControls:TRUE];
|
[self showPlaybackControls:TRUE];
|
||||||
|
|
|
@ -124,7 +124,7 @@
|
||||||
|
|
||||||
- (void)setupWebView {
|
- (void)setupWebView {
|
||||||
if (!self.wkWebView) {
|
if (!self.wkWebView) {
|
||||||
self.wkWebView = [[WKWebView alloc] init];
|
self.wkWebView = [[[WKWebView alloc] init] autorelease];
|
||||||
self.wkWebView.UIDelegate = self;
|
self.wkWebView.UIDelegate = self;
|
||||||
self.wkWebView.navigationDelegate = self;
|
self.wkWebView.navigationDelegate = self;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue