Changed LiveJasmin beta warning a bit

Since the HLS downloads suddenly work the warning now only states, that
you have to log in and that the previews don't work
This commit is contained in:
0xboobface 2019-01-18 16:30:16 +01:00
parent 8e0e8855d0
commit f7ca2a1eab
3 changed files with 3 additions and 24 deletions

View File

@ -2,7 +2,6 @@ package ctbrec.ui.sites.jasmin;
import ctbrec.sites.jasmin.LiveJasmin; import ctbrec.sites.jasmin.LiveJasmin;
import ctbrec.ui.FollowedTab; import ctbrec.ui.FollowedTab;
import javafx.concurrent.WorkerStateEvent;
import javafx.geometry.Insets; import javafx.geometry.Insets;
import javafx.scene.Scene; import javafx.scene.Scene;
import javafx.scene.control.RadioButton; import javafx.scene.control.RadioButton;
@ -41,24 +40,6 @@ public class LiveJasminFollowedTab extends LiveJasminTab implements FollowedTab
}); });
} }
@Override
protected void onSuccess() {
grid.getChildren().remove(status);
super.onSuccess();
}
@Override
protected void onFail(WorkerStateEvent event) {
status.setText("Login failed");
super.onFail(event);
}
@Override
public void selected() {
status.setText("Logging in...");
super.selected();
}
@Override @Override
public void setScene(Scene scene) { public void setScene(Scene scene) {
scene.addEventFilter(KeyEvent.KEY_PRESSED, event -> { scene.addEventFilter(KeyEvent.KEY_PRESSED, event -> {

View File

@ -24,10 +24,8 @@ public class LiveJasminTab extends ThumbOverviewTab {
super(title, updateService, site); super(title, updateService, site);
if(!betaAcknowledged) { if(!betaAcknowledged) {
status = new Label("LiveJasmin is not fully functional. Live previews do not work.\n" status = new Label("LiveJasmin is not fully functional. Live previews do not work.\n"
+ "Starting the stream in the external player also only works for streams with SD quality.\n" + "Also make sure, that you have an account and that you have entered your credentials.\n"
+ "Recording works only in standalone mode. The server does not support it, because you have " + "Otherwise you might get errors.");
+ "to be logged in.\nSo make sure, that you have an account and that you have entered your credentials "
+ "on the settings tab.");
grid.getChildren().add(status); grid.getChildren().add(status);
grid.getChildren().add(acknowledge); grid.getChildren().add(acknowledge);
grid.getChildren().add(createAccount); grid.getChildren().add(createAccount);

View File

@ -42,7 +42,7 @@ public class LiveJasminTabProvider extends TabProvider {
private ThumbOverviewTab createTab(String title, String url) { private ThumbOverviewTab createTab(String title, String url) {
LiveJasminUpdateService s = new LiveJasminUpdateService(liveJasmin, url); LiveJasminUpdateService s = new LiveJasminUpdateService(liveJasmin, url);
LiveJasminTab tab = new LiveJasminTab(title, s, liveJasmin); ThumbOverviewTab tab = new LiveJasminTab(title, s, liveJasmin);
tab.setRecorder(liveJasmin.getRecorder()); tab.setRecorder(liveJasmin.getRecorder());
s.setPeriod(Duration.seconds(60)); s.setPeriod(Duration.seconds(60));
return tab; return tab;