I am trying to make app where you can watch Twitch.tv streams. So far I have tried many things but this piece of code works almost perfectly. But in my app I see only THIS
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
public class Main extends Application {
public static void main(String[] args) { launch(args); }
@Override public void start(Stage stage) throws Exception {
WebView webview = new WebView();
webview.getEngine().load(
"http://player.twitch.tv/?channel=kolento"
);
webview.setPrefSize(640, 390);
stage.setScene(new Scene(webview));
stage.show();
}
}
How to do it? Any ideas or solutions ? Thank you for your time.