Skip to content

Commit b215e89

Browse files
author
buzzibaer
committed
loop contorl added
1 parent 9aafcbc commit b215e89

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

release/tabletovideomapping.ini

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,11 @@ loglevel=SEVERE
2727
# console
2828
# file
2929
# both
30-
loghandler=file
30+
loghandler=file
31+
#
32+
# VideoLoop control
33+
# the videos of the fan cycle through all videos, from start to end and over again
34+
# to prevent cycling you can set the option here
35+
# sometimes the fan is doing the complete opposite, so if its not working, change it to the opposite and try again
36+
# possible options = true / false
37+
loopControl=true

src/threedpinballfan/Fan.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ public void selectSingePlaybackMode() {
3030
client.send(playModelSingle);
3131
logger.info("Command Send = playModelSingle > " + playModelSingle);
3232
}
33+
34+
public void selectLoopPlaybackMode() {
35+
String playModelLoop = UpLoadData.playModelLoop();
36+
client.send(playModelLoop);
37+
logger.info("Command Send = playModelSingle > " + playModelLoop);
38+
}
3339

3440
/**
3541
* Selection of specific table on the wifi fan

src/threedpinballfan/Lauch.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ public static void main(String[] args) throws InterruptedException, SecurityExce
7373
fan = new Fan(logger, client);
7474

7575
// single playback mode selection
76-
fan.selectSingePlaybackMode();
76+
boolean loopControl = Boolean.parseBoolean(props.getProperty("loopControl"));
77+
if (loopControl) {
78+
fan.selectSingePlaybackMode();
79+
} else {
80+
fan.selectLoopPlaybackMode();
81+
}
7782

7883
// select pic / video
7984
logger.info("selcted game is >" + gamename + "< with id from mapping = >" + videoid + "<");

0 commit comments

Comments
 (0)