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:
- using embed link e.g. https://www.youtube.com/embed/puaudt6answ
- using regular youtube link
- wrapping embed link in iframe
- installing divx codecs (and software)
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
Post a Comment