Skip to content

Commit

Permalink
iOS support (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
Futuredorito authored May 11, 2024
1 parent a8929be commit cafc58e
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 11 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ A Haxe library which adds native video playback on [HaxeFlixel](https://haxeflix

2. Add this code in the ***project.xml*** file.
```xml
<haxelib name="hxCodec" if="desktop || android" />
<haxelib name="hxCodec" if="desktop || mobile" />
```

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

| Avatar | UserName | Involvement |
| ------ | -------- | ----------- |
| ![](https://avatars.githubusercontent.com/u/47796739?s=64) | [polybiusproxy](https://github.com/polybiusproxy) | Creator of **hxCodec**.
| ![](https://avatars.githubusercontent.com/u/1677550?s=64) | [datee](https://github.com/datee) | Creator of **HaxeVLC**.
| ![](https://avatars.githubusercontent.com/u/77043862?s=64) | [MAJigsaw77](https://github.com/MAJigsaw77) | Programmer, Android & Linux support.
| ![](https://avatars.githubusercontent.com/u/4635334?s=64) | [EliteMasterEric](https://github.com/EliteMasterEric) | Additional Programmer.
| ![](https://avatars.githubusercontent.com/u/84131849?s=64) | [RapperGF](https://github.com/RapperGF) | Rendering Overhaul & Testing.
| ![](https://avatars.githubusercontent.com/u/49110074?s=64) | [swordcube](https://github.com/swordcube) | Testing Linux Support.
| ![](https://avatars.githubusercontent.com/u/107599365?v=64) | [Jonnycat](https://github.com/JonnycatMeow) | MacOS Support.
| ![](https://avatars.githubusercontent.com/u/47796739?s=64) | [polybiusproxy](https://github.com/polybiusproxy) | Creator of **hxCodec**
| ![](https://avatars.githubusercontent.com/u/1677550?s=64) | [datee](https://github.com/datee) | Creator of **HaxeVLC**
| ![](https://avatars.githubusercontent.com/u/77043862?s=64) | [MAJigsaw77](https://github.com/MAJigsaw77) | Programmer, Android & Linux support
| ![](https://avatars.githubusercontent.com/u/4635334?s=64) | [EliteMasterEric](https://github.com/EliteMasterEric) | Additional Programmer
| ![](https://avatars.githubusercontent.com/u/84131849?s=64) | [RapperGF](https://github.com/RapperGF) | Rendering Overhaul & Testing
| ![](https://avatars.githubusercontent.com/u/49110074?s=64) | [swordcube](https://github.com/swordcube) | Testing Linux support
| ![](https://avatars.githubusercontent.com/u/107599365?v=64) | [Jonnycat](https://github.com/JonnycatMeow) | macOS support
| ![](https://avatars.githubusercontent.com/u/103241885?s=64) | [FutureDorito](https://github.com/Futuredorito) | iOS support
| ![](https://avatars.githubusercontent.com/u/82843871?s=64) | [mcagabe19](https://github.com/mcagabe19) | iOS support
14 changes: 14 additions & 0 deletions include.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@
<ndll name="vlc" dir="project/vlc/lib" />
</section>

<section if="ios">
<dependency name="CFNetwork.framework" />
<dependency name="CoreFoundation.framework" />
<dependency name="CoreMedia.framework" />
<dependency name="CoreText.framework" />
<dependency name="CoreVideo.framework" />
<dependency name="Security.framework" />
<dependency name="VideoToolbox.framework" />
<dependency name="CoreImage.framework" />

<dependency name="libbz2.tbd" />
<dependency name="libiconv.tbd" />
</section>

<source path="src" />

</extension>
12 changes: 12 additions & 0 deletions project/Build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@
<lib name="-lvlccore" />
</section>

<section if="iphoneos || iphonesim">
<vflag name="-framework" value="CFNetwork" />
<vflag name="-framework" value="CoreFoundation" />
<vflag name="-framework" value="CoreMedia" />
<vflag name="-framework" value="CoreText" />
<vflag name="-framework" value="CoreVideo" />
<vflag name="-framework" value="Security" />
<vflag name="-framework" value="VideoToolbox" />
<vflag name="-framework" value="CoreImage" />
<lib name="${haxelib:hxCodec}/project/vlc/lib/iOS/libvlc.a" />
</section>

<section if="android">
<lib name="${haxelib:hxCodec}/project/vlc/lib/Android/libvlc-64.so" if="HXCPP_ARM64" />
<lib name="${haxelib:hxCodec}/project/vlc/lib/Android/libvlc-v7.so" if="HXCPP_ARMV7" />
Expand Down
Binary file added project/vlc/lib/iOS/libvlc.a
Binary file not shown.
2 changes: 1 addition & 1 deletion samples/flixel-playback/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<!-- _______________________________ Libraries ______________________________ -->

<haxelib name="flixel" />
<haxelib name="hxCodec" if="desktop || android" />
<haxelib name="hxCodec" if="desktop || mobile" />

<!-- ______________________________ Haxedefines _____________________________ -->

Expand Down
2 changes: 1 addition & 1 deletion samples/lime-playback/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<source path="Source" />

<haxelib name="lime" />
<haxelib name="hxCodec" if="desktop || android" />
<haxelib name="hxCodec" if="desktop || mobile" />

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

Expand Down
2 changes: 1 addition & 1 deletion samples/openfl-playback/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<!-- _______________________________ Libraries ______________________________ -->

<haxelib name="openfl" />
<haxelib name="hxCodec" if="desktop || android" />
<haxelib name="hxCodec" if="desktop || mobile" />

<!-- ______________________________ Haxedefines _____________________________ -->

Expand Down

0 comments on commit cafc58e

Please sign in to comment.