Skip to content

Commit cafc58e

Browse files
authored
iOS support (#301)
1 parent a8929be commit cafc58e

File tree

7 files changed

+39
-11
lines changed

7 files changed

+39
-11
lines changed

README.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ A Haxe library which adds native video playback on [HaxeFlixel](https://haxeflix
2222

2323
2. Add this code in the ***project.xml*** file.
2424
```xml
25-
<haxelib name="hxCodec" if="desktop || android" />
25+
<haxelib name="hxCodec" if="desktop || mobile" />
2626
```
2727

2828
**OPTIONAL: Some defines you can add to your project**
@@ -62,10 +62,12 @@ Check out the [Samples Folder](samples/) for examples on how to use this library
6262

6363
| Avatar | UserName | Involvement |
6464
| ------ | -------- | ----------- |
65-
| ![](https://avatars.githubusercontent.com/u/47796739?s=64) | [polybiusproxy](https://github.com/polybiusproxy) | Creator of **hxCodec**.
66-
| ![](https://avatars.githubusercontent.com/u/1677550?s=64) | [datee](https://github.com/datee) | Creator of **HaxeVLC**.
67-
| ![](https://avatars.githubusercontent.com/u/77043862?s=64) | [MAJigsaw77](https://github.com/MAJigsaw77) | Programmer, Android & Linux support.
68-
| ![](https://avatars.githubusercontent.com/u/4635334?s=64) | [EliteMasterEric](https://github.com/EliteMasterEric) | Additional Programmer.
69-
| ![](https://avatars.githubusercontent.com/u/84131849?s=64) | [RapperGF](https://github.com/RapperGF) | Rendering Overhaul & Testing.
70-
| ![](https://avatars.githubusercontent.com/u/49110074?s=64) | [swordcube](https://github.com/swordcube) | Testing Linux Support.
71-
| ![](https://avatars.githubusercontent.com/u/107599365?v=64) | [Jonnycat](https://github.com/JonnycatMeow) | MacOS Support.
65+
| ![](https://avatars.githubusercontent.com/u/47796739?s=64) | [polybiusproxy](https://github.com/polybiusproxy) | Creator of **hxCodec**
66+
| ![](https://avatars.githubusercontent.com/u/1677550?s=64) | [datee](https://github.com/datee) | Creator of **HaxeVLC**
67+
| ![](https://avatars.githubusercontent.com/u/77043862?s=64) | [MAJigsaw77](https://github.com/MAJigsaw77) | Programmer, Android & Linux support
68+
| ![](https://avatars.githubusercontent.com/u/4635334?s=64) | [EliteMasterEric](https://github.com/EliteMasterEric) | Additional Programmer
69+
| ![](https://avatars.githubusercontent.com/u/84131849?s=64) | [RapperGF](https://github.com/RapperGF) | Rendering Overhaul & Testing
70+
| ![](https://avatars.githubusercontent.com/u/49110074?s=64) | [swordcube](https://github.com/swordcube) | Testing Linux support
71+
| ![](https://avatars.githubusercontent.com/u/107599365?v=64) | [Jonnycat](https://github.com/JonnycatMeow) | macOS support
72+
| ![](https://avatars.githubusercontent.com/u/103241885?s=64) | [FutureDorito](https://github.com/Futuredorito) | iOS support
73+
| ![](https://avatars.githubusercontent.com/u/82843871?s=64) | [mcagabe19](https://github.com/mcagabe19) | iOS support

include.xml

+14
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@
99
<ndll name="vlc" dir="project/vlc/lib" />
1010
</section>
1111

12+
<section if="ios">
13+
<dependency name="CFNetwork.framework" />
14+
<dependency name="CoreFoundation.framework" />
15+
<dependency name="CoreMedia.framework" />
16+
<dependency name="CoreText.framework" />
17+
<dependency name="CoreVideo.framework" />
18+
<dependency name="Security.framework" />
19+
<dependency name="VideoToolbox.framework" />
20+
<dependency name="CoreImage.framework" />
21+
22+
<dependency name="libbz2.tbd" />
23+
<dependency name="libiconv.tbd" />
24+
</section>
25+
1226
<source path="src" />
1327

1428
</extension>

project/Build.xml

+12
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@
3030
<lib name="-lvlccore" />
3131
</section>
3232

33+
<section if="iphoneos || iphonesim">
34+
<vflag name="-framework" value="CFNetwork" />
35+
<vflag name="-framework" value="CoreFoundation" />
36+
<vflag name="-framework" value="CoreMedia" />
37+
<vflag name="-framework" value="CoreText" />
38+
<vflag name="-framework" value="CoreVideo" />
39+
<vflag name="-framework" value="Security" />
40+
<vflag name="-framework" value="VideoToolbox" />
41+
<vflag name="-framework" value="CoreImage" />
42+
<lib name="${haxelib:hxCodec}/project/vlc/lib/iOS/libvlc.a" />
43+
</section>
44+
3345
<section if="android">
3446
<lib name="${haxelib:hxCodec}/project/vlc/lib/Android/libvlc-64.so" if="HXCPP_ARM64" />
3547
<lib name="${haxelib:hxCodec}/project/vlc/lib/Android/libvlc-v7.so" if="HXCPP_ARMV7" />

project/vlc/lib/iOS/libvlc.a

30.8 MB
Binary file not shown.

samples/flixel-playback/project.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<!-- _______________________________ Libraries ______________________________ -->
4444

4545
<haxelib name="flixel" />
46-
<haxelib name="hxCodec" if="desktop || android" />
46+
<haxelib name="hxCodec" if="desktop || mobile" />
4747

4848
<!-- ______________________________ Haxedefines _____________________________ -->
4949

samples/lime-playback/project.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<source path="Source" />
88

99
<haxelib name="lime" />
10-
<haxelib name="hxCodec" if="desktop || android" />
10+
<haxelib name="hxCodec" if="desktop || mobile" />
1111

1212
<assets path="Assets" rename="assets" />
1313

samples/openfl-playback/project.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<!-- _______________________________ Libraries ______________________________ -->
3434

3535
<haxelib name="openfl" />
36-
<haxelib name="hxCodec" if="desktop || android" />
36+
<haxelib name="hxCodec" if="desktop || mobile" />
3737

3838
<!-- ______________________________ Haxedefines _____________________________ -->
3939

0 commit comments

Comments
 (0)