Skip to content

Commit

Permalink
Install Media Features for Windows only and force JavaFX to use WMF b…
Browse files Browse the repository at this point in the history
…ackend
  • Loading branch information
besidev committed Oct 17, 2024
1 parent fac2c02 commit 86aff80
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,19 @@ jobs:
pulseaudio --start --exit-idle-time=-1
pacmd load-module module-null-sink sink_name=DummyOutput
- name: Install Media Features (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
Enable-WindowsOptionalFeature -Online -FeatureName MediaPlayback -All
Enable-WindowsOptionalFeature -Online -FeatureName MediaFoundation -All
- name: Set JavaFX Media Backend to WMF (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
$env:JDK_JAVA_OPTIONS = "-Djfxmedia.platforms=Windows"
- name: Compile
run: |
./gradlew jar
Expand Down

0 comments on commit 86aff80

Please sign in to comment.