Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit dbd5eba

Browse files
committed
[[ Player ]] Update iOS mobile player control to use AVKit
This patch updates the iOS implementation of the mobile player control to use AVPlayer, replacing the MPMoviePlayer based version.
1 parent 65ed717 commit dbd5eba

File tree

6 files changed

+800
-375
lines changed

6 files changed

+800
-375
lines changed

engine/kernel.gyp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@
193193
'$(SDKROOT)/System/Library/Frameworks/AddressBook.framework',
194194
'$(SDKROOT)/System/Library/Frameworks/AddressBookUI.framework',
195195
'$(SDKROOT)/System/Library/Frameworks/AVFoundation.framework',
196+
'$(SDKROOT)/System/Library/Frameworks/AVKit.framework',
196197
'$(SDKROOT)/System/Library/Frameworks/CFNetwork.framework',
197198
'$(SDKROOT)/System/Library/Frameworks/CoreLocation.framework',
198199
'$(SDKROOT)/System/Library/Frameworks/CoreMedia.framework',

engine/src/mbliphonecontrol.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class MCiOSControl : public MCNativeControl
3838
virtual const MCNativeControlActionTable *getactiontable(void) const { return &kActionTable; }
3939

4040
virtual void SetRect(MCExecContext& ctxt, MCRectangle p_rect);
41-
void SetVisible(MCExecContext& ctxt, bool p_visible);
41+
virtual void SetVisible(MCExecContext& ctxt, bool p_visible);
4242
void SetOpaque(MCExecContext& ctxt, bool p_opaque);
4343
void SetAlpha(MCExecContext& ctxt, uinteger_t p_alpha);
4444
void SetBackgroundColor(MCExecContext& ctxt, const MCNativeControlColor& p_color);

engine/src/mbliphoneinput.mm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
#import <Foundation/Foundation.h>
3737
#import <UIKit/UIKit.h>
3838

39-
#import <MediaPlayer/MPMoviePlayerController.h>
40-
4139
#include "mbliphonecontrol.h"
4240
#include "mbliphone.h"
4341

0 commit comments

Comments
 (0)