Commit Graph

182 Commits

Author SHA1 Message Date
halx99 1e2ad6318c Fix #1857 2024-04-27 23:31:44 +08:00
RH 3916a2367b
Cross-platform media controller for video playback (#1845)
* Initial work on media controller

* Media player controller for WMF media engine

* Add getDuration and getCurrentTime methods to media engines

* Fix compilation

* Fix Android media timeline issues

* Fix compilation issue

* Fix WinRT compilation issue

* Fix compilation issue

* Add missing header include

* Make it simpler to create a custom media controller

* Ensure the basic media controller widget size is the same size as the media player on initialization

* Add dark media control underlay to give more contrast to the controls
ADd copyright notices

* Removing existing media controller from parent if required

* Adjust for view scaling since embedded resources are created for a scale of 1.

* Scale central media controls if required on content size change

* Remove pointless fast forward and fast reverse buttons
Ensure media controller correctly resizes on full-screen media playback

* Allow enable vlc on windows

* Improve media macro detect

* Add media controls drawn by DrawNode into single texture
Add fullscreen enter and exit controls
setUserInputEnabled and isUserInputEnabled replaced by setMediaControllerEnabled and isMediaControllerEnabled

* Update function calls to new names

* Revert back to setUserInputEnabled and isUserInputEnabled

* Remove embedded circle image and create it with DrawNode

* Change radius of drawn circle to half the total image size

---------

Co-authored-by: halx99 <halx99@live.com>
2024-04-24 22:28:59 +08:00
halx99 f8de198e18 Improve build system 2024-04-24 01:39:49 +08:00
RH 801f5e0267
Display cmake command used by build script in console (#1834) 2024-04-18 22:51:51 +08:00
halx99 cec839a96f Improve build system 2024-04-13 22:11:22 +08:00
halx99 1fff0fa746 Add experimental wasm64 support
really experimental, just build, can't run yet
2024-04-12 20:34:59 +08:00
halx99 d37f23997a Improve axmol cmdline 2024-04-09 02:42:25 +08:00
smilediver 2493a6d17b
Fix crash on iOS (#1799) 2024-04-09 01:40:41 +08:00
halx99 68a5c250cd Fix build android with axmol cmdline arch not working 2024-04-09 01:37:04 +08:00
halx99 88eb698ba2 Make command `axmol build` alias `axmol` 2024-04-07 23:34:30 +08:00
halx99 bc1bab5a98 Update AGP 8.2.2
- gradle: 8.5 ==> 8.7
- gradle-wapper.jar: NA ==> 8.7
- cmdlinetools: 10406996 ==> 11076708
2024-04-07 02:08:00 +08:00
halx99 e62a0aa6b7 Improve 1k/install-pwsh.sh [skip ci]
Add 1k/install-cmake.sh
2024-04-06 15:48:16 +08:00
Deal 8c5243fd20
Fix #1790 2024-04-06 08:35:14 +08:00
halx99 a6867f3c28 Improve feature dependencies control 2024-04-05 11:07:47 +08:00
halx99 620c5027fd Update build system 2024-04-03 20:25:25 +08:00
halx99 372ebf1355 Update glad to v2.0.6 2024-04-03 03:58:21 +08:00
halx99 e8b070c84c Remove unnecessary cmake option AX_VS_DEPLOYMENT_TARGET since we require cmake >= 3.28 2024-04-03 03:57:59 +08:00
Deal 9e944935b0
Add apple xcframework support (#1786)
* Add apple xcframework support

* Fix ci
2024-04-03 01:48:30 +08:00
halx99 0c7181c77c Improve build system 2024-04-02 22:31:34 +08:00
halx99 d645aee0d5 Improve 1k/build.ps1 2024-04-01 22:37:05 +08:00
halx99 284f088074 Move rpath control to 1k/platforms.cmake 2024-03-30 01:27:13 +08:00
halx99 f7c19cdbef Fix #1768 2024-03-30 01:09:52 +08:00
halx99 9a10407d7d Improve build system 2024-03-30 01:08:55 +08:00
halx99 c9b511a39d Set cmake minmal require to 3.29.0+ for supress xcode 15 duplicated linking warnings 2024-03-30 01:00:31 +08:00
halx99 d514f88cb1 Fix mac & linux rpath settings 2024-03-27 22:57:32 +08:00
halx99 6e6227196c Prepare release 2.1.3 2024-03-26 00:08:53 +08:00
halx99 d1cf78baa6 Improve 1k/fetch.cmake 2024-03-25 00:09:08 +08:00
halx99 968ab10a74 Improve 1k/fetch.ps1 2024-03-24 12:55:10 +08:00
halx99 dc3be5aad3 Improve build system error prompt 2024-03-24 05:44:05 +08:00
halx99 494312a60e Update 1k/fetch.ps1 [skip ci][skip appveyor] 2024-03-24 05:26:44 +08:00
halx99 57335362e1 Improve build system 2024-03-24 05:11:41 +08:00
halx99 966527f53b Update emsdk to 3.1.56 2024-03-23 02:06:40 +08:00
halx99 f6061ee1ba Improve build system again 2024-03-23 00:51:46 +08:00
Deal 25b5d14546
Fix ci 2024-03-22 23:57:08 +08:00
Deal 034aea1bae
Fix ci 2024-03-22 23:48:42 +08:00
halx99 0cab7e3f1f Improve build system 2024-03-22 23:37:16 +08:00
halx99 60df1de329 Update emsdk to 3.1.55[skip ci] 2024-03-08 01:17:15 +08:00
halx99 a7df439849 Don't use force checkout, will lose sentry file 2024-02-17 00:05:53 +08:00
Deal b9ad6579a2
Add -j to specify build cpu count support (#1688) 2024-02-16 08:57:13 +08:00
halx99 a746bfcd8f Update emsdk to 3.1.53 [skip ci] 2024-02-14 12:21:10 +08:00
halx99 fb0ff3f02c Fix c-ares link issue 2024-02-06 00:32:19 +08:00
halx99 df165fec4b Prepare release v2.1.1 2024-02-02 00:00:06 +08:00
halx99 622dc880d2 Add mirror support for some devtools 2024-02-01 22:38:30 +08:00
Deal 9ec7c54c57
release 2.1.0 finally (#1621) [release 2.1.0]
* Delete deprecated prop `buildconfig` from gradle.properties

* Delete unnecessary props since it's value same with defaults

* Don't need config debug keystore, will auto signed by default debug.keystore

* Update funding [skip ci]

* Fix axmol cmdline tool command 'new'

* Refix c99 for winsdk < 10.0.22000.0

* Fix powershell 3 condition statement: 'xxx = if(c) { v1 } else { v2 }' will lost switch parameter semantic

* Improve code style

* Improve code style

* Fixup
2024-01-20 16:16:53 +08:00
halx99 8ee68b58c9 Bump 2.1.0 2024-01-19 20:39:08 +08:00
halx99 fc6fff75bc Prepare release v2.1.0 2024-01-19 00:12:19 +08:00
halx99 3b4bf5c69b Improve console scripts
- setup.ps1: auto set windows `powershell.exe` execution policy to `Bypass`
- Improve axmol console command
- Improve ninja setup
2024-01-19 00:05:18 +08:00
halx99 066eb4b501 Improve ios.cmake 2024-01-18 00:02:50 +08:00
halx99 d3e680bc52 Update Android devtools
- AGP 8.2.1
- Android Studio 2023.1.1+
- Android SDK Tools 34.0.0
- Android SDK Platform 34
- Gradle 8.5
2024-01-17 02:59:40 +08:00
halx99 7a14ef8c19 Bump 2.1.0 release 2024-01-12 02:49:07 +08:00