When I try to load a video into JavaFX Webview the youtube will display an error message when play is pressed saying: "An error occurred, please try again later"
I have this:
private void change(final Pattern pattern) {
nameLabel.setText(pattern.getName());
final WebEngine engine = view.getEngine();
final String code = "YME_DYsmBpY";
engine.load("http://www.youtube.com/embed/" + code + "?rel=0;3&autohide=1&showinfo=0");
}
The WebView (view) is created in FXML and is not used outside of this method.
Any help would be appreciated! :)