java - Youtube in JavaFX WebView -


i'm trying play youtube video in javafx webview. other people, keep getting "an error occurred, please try again later." error. (also soundcloud doesn't work either, can use html 5 only)

my code simply:

public static void main(string[] args){     launch(args); }  @override public void start(stage primarystage) throws exception {      primarystage.settitle(title);      webview wbv = new webview();     wbv.getengine().load("http://www.youtube.com/");     wbv.setprefsize(854, 480);      primarystage.setscene(new scene(wbv));      primarystage.show(); } 

i have tried:

if try different website html 5 player (http://www.videojs.com), works.

so i'm guessing must youtube , soundcloud.

is there anyway can make work? thanks

you need 8u72 version. versions prior have issue https. had same problem , fixed way.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -