Skip to content

Commit

Permalink
skadi-18 remove videoplayer setting completely
Browse files Browse the repository at this point in the history
  • Loading branch information
s1mpl3x committed Sep 9, 2015
1 parent b8d9974 commit d5e99b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 20 deletions.
3 changes: 1 addition & 2 deletions src/main/java/eu/over9000/skadi/handler/StreamHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,9 @@ private StreamProcessHandler(final Channel forChannel, final StreamQuality quali
channel = forChannel;
thread.setName("StreamHandler Thread for " + channel.getName());

final String videoplayerExec = StateContainer.getInstance().getExecutableVideoplayer();
final String livestreamerExec = StateContainer.getInstance().getExecutableLivestreamer();

process = new ProcessBuilder(livestreamerExec, channel.buildURL(), quality.getQuality(), "-p " + videoplayerExec).redirectErrorStream(true).start();
process = new ProcessBuilder(livestreamerExec, channel.buildURL(), quality.getQuality()).redirectErrorStream(true).start();
thread.start();
}

Expand Down
10 changes: 0 additions & 10 deletions src/main/java/eu/over9000/skadi/model/StateContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ public final class StateContainer {
private String executableChrome = getDefaultChrome();
@XmlElement(name = "executable_livestreamer")
private String executableLivestreamer = getDefaultLivestreamer();
@XmlElement(name = "executable_videoplayer")
private String executableVideoplayer = getDefaultVideoplayer();
@XmlElement(name = "display_notifications")
private boolean displayNotifications = true;
@XmlElement(name = "minimize_to_tray")
Expand Down Expand Up @@ -108,14 +106,6 @@ public void setExecutableLivestreamer(final String executableLivestreamer) {
this.executableLivestreamer = executableLivestreamer;
}

public String getExecutableVideoplayer() {
return executableVideoplayer;
}

public void setExecutableVideoplayer(final String executableVideoplayer) {
this.executableVideoplayer = executableVideoplayer;
}

public boolean isDisplayNotifications() {
return displayNotifications;
}
Expand Down
10 changes: 2 additions & 8 deletions src/main/java/eu/over9000/skadi/ui/dialogs/SettingsDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ public SettingsDialog() {
final TextField tfLivestreamer = new TextField(state.getExecutableLivestreamer());
tfLivestreamer.setPrefColumnCount(25);

final Label lbVideoplayer = new Label("Videoplayer executable");
final TextField tfVideoplayer = new TextField(state.getExecutableVideoplayer());
tfVideoplayer.setPrefColumnCount(25);

final Label lbChrome = new Label("Chrome executable");
final TextField tfChrome = new TextField(state.getExecutableChrome());
Expand All @@ -59,10 +56,8 @@ public SettingsDialog() {

grid.add(lbLivestreamer, 0, 0);
grid.add(tfLivestreamer, 1, 0);
grid.add(lbVideoplayer, 0, 1);
grid.add(tfVideoplayer, 1, 1);
grid.add(lbChrome, 0, 2);
grid.add(tfChrome, 1, 2);
grid.add(lbChrome, 0, 1);
grid.add(tfChrome, 1, 1);

final CheckBox cbShowNotifications = new CheckBox("Show notifications");
cbShowNotifications.setSelected(state.isDisplayNotifications());
Expand All @@ -80,7 +75,6 @@ public SettingsDialog() {
setResultConverter(btn -> {
if (btn == saveButtonType) {
state.setExecutableLivestreamer(tfLivestreamer.getText());
state.setExecutableVideoplayer(tfVideoplayer.getText());
state.setExecutableChrome(tfChrome.getText());

state.setDisplayNotifications(cbShowNotifications.isSelected());
Expand Down

0 comments on commit d5e99b1

Please sign in to comment.