Skip to content

Commit 70519ba

Browse files
committed
external VLC
1 parent cedec80 commit 70519ba

File tree

5 files changed

+29
-7
lines changed

5 files changed

+29
-7
lines changed

RELEASE_NOTES.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
## Changes (including a breaking one!)
44

5-
- **Pause Menu Settings**: Added separate section for the screenshot preferences there. You can choose now which screens are taken for the screenshot. Note that **you need to review these settings** so that the scoring screenshot works as expected and contains your highscore.
6-
- **Tutorials Video Player**: The video playback uses the **VLC Media Player** from PinUP Popper now (when found).
5+
- **Pause Menu**:
6+
- Added separate section for the screenshot preferences there. You can choose now which screens are taken for the screenshot. Note that **you need to review these settings** so that the scoring screenshot works as expected and contains your highscore.
7+
- Tutorials Video**: The video playback uses the **VLC Media Player** from PinUP Popper now (when found). This is a first test ballon and might need some refinement. But at least the video playback is now reliable. The VLC player is not shipped with the Studio due to license restrictions.
8+
- The videos are played on a separate screen, the "Mute System" option is ignored so that the video is always played with sound.
79
- **Asset Manager**:
810
- Fixed possible file lock caused by the media streaming that prohibited the deletion (blind fix).
911
- Added same support for playlist media than game media (drag/drop, rename, set as default, delete, conversion...).

resources/vpsdb.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

vpin-studio-commons/src/main/java/de/mephisto/vpin/commons/StudioMediaPlayer.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,20 @@ else if (store.containsKey("vlc.installationDir")) {
7878
List<String> cmds = new ArrayList<>(List.of("vlc.exe",
7979
"\"" + asset.getUrl().toExternalForm() + "\"",
8080
"--mouse-hide-timeout=0",
81-
"--dummy-quiet",
8281
"--intf", "rc",
82+
"--intf", "dummy",
8383
"--rc-quiet",
8484
"--no-qt-privacy-ask",
8585
"--reset-plugins-cache",
8686
"--ignore-config",
87+
"--aout=directsound",
88+
"--directx-audio-device=default",
8789
"--no-stats",
8890
"--no-media-library",
8991
"--no-video-deco",
9092
"--no-video-title-show",
9193
"--qt-minimal-view",
94+
"--video-on-top",
9295
"--no-qt-name-in-title",
9396
"--no-qt-fs-controller",
9497
"--video-x=" + screenStageX,
@@ -97,6 +100,8 @@ else if (store.containsKey("vlc.installationDir")) {
97100
"--height=" + height
98101
));
99102

103+
LOG.info("VLC is playing: {}", asset.getUrl().toExternalForm());
104+
LOG.info("VLC command: {}", String.join(" ", cmds));
100105
if (rotation != 0) {
101106
cmds.add("--video-filter=transform");
102107
cmds.add("--transform-type=" + rotation);

vpin-studio-commons/src/main/java/de/mephisto/vpin/commons/fx/pausemenu/PauseMenu.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public void togglePauseMenu(@Nullable GameStatus status, boolean test) {
288288
Boolean isMuted = WindowsVolumeControl.isMuted();
289289
alreadyMuted = isMuted != null && isMuted;
290290

291-
if (pauseMenuSettings.isMuteOnPause() && !alreadyMuted) {
291+
if (pauseMenuSettings.isMuteOnPause() && !alreadyMuted && !pauseMenuSettings.isTutorialsOnScreen()) {
292292
NirCmd.muteSystem(true);
293293
}
294294
return true;
@@ -348,7 +348,7 @@ public void exitPauseMenu() {
348348
NirCmd.focusWindow("Visual Pinball Player");
349349
}
350350

351-
if (pauseMenuSettings.isMuteOnPause() && !alreadyMuted) {
351+
if (pauseMenuSettings.isMuteOnPause() && !alreadyMuted && !pauseMenuSettings.isTutorialsOnScreen()) {
352352
NirCmd.muteSystem(false);
353353
}
354354
}

vpin-studio-ui/src/main/resources/de/mephisto/vpin/ui/preferences/preference-pause-menu.fxml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,22 @@
409409
<ToggleGroup fx:id="tutorialScreenGroup" />
410410
</toggleGroup>
411411
</RadioButton>
412-
<RadioButton fx:id="tutorialScreenRadio" layoutX="10.0" layoutY="43.0" mnemonicParsing="false" styleClass="default-text" text="Display Tutorial Videos on VPin Screen" toggleGroup="$tutorialScreenGroup" />
412+
<HBox alignment="CENTER_LEFT" spacing="6.0">
413+
<children>
414+
<RadioButton fx:id="tutorialScreenRadio" mnemonicParsing="false" styleClass="default-text" text="Display Tutorial Videos on VPin Screen" toggleGroup="$tutorialScreenGroup" />
415+
<Label fx:id="publicReadAPIHint11111" textFill="WHITE">
416+
<font>
417+
<Font size="14.0" />
418+
</font>
419+
<graphic>
420+
<FontIcon iconColor="WHITE" iconLiteral="mdi2h-help-circle-outline" iconSize="18" />
421+
</graphic>
422+
<tooltip>
423+
<Tooltip prefWidth="300.0" text="If you use PinUP Popper as frontend for your cabinet, this is the recommended setting." wrapText="true" />
424+
</tooltip>
425+
</Label>
426+
</children>
427+
</HBox>
413428
<ComboBox fx:id="screenTutorialComboBox" prefWidth="250.0">
414429
<VBox.margin>
415430
<Insets left="24.0" />

0 commit comments

Comments
 (0)