I'm building app Webview from JavaFX. The problem is that WebView component has problem with playing youtube videos - it shows "An error occurred please try again later", but in other web browsers there is no such problem.
I'm looking for eomsone who will fix this or will give me some workaround (only javafx and webview, no swing or native components).
Simple code that causing problems (run few times):
import [login to view URL];
import [login to view URL];
import [login to view URL];
import [login to view URL];
public class Main extends Application {
@Override
public void start(Stage primaryStage) {
try {
WebView root = new WebView();
Scene scene = new Scene(root,400,400);
[login to view URL](scene);
[login to view URL]();
[login to view URL]().load("[login to view URL]");
} catch(Exception e) {
[login to view URL]();
}
}
public static void main(String[] args) {
launch(args);
}
}
Hello,
That's strange, I also use the WebView in several projects. And I can play youtube normally.
What is the URL of the movies? And what system do you have?
gr,
Jacco
Dear Sir. We claim to get it done perfectly for you EXACTLY in the way you want it - Kindly give we a chance and we will prove myself -
Ready to prove our words, let's get it done right away and I mean RIGHT AWAY !!
Looking forward to hear from you soon - GOD Bless You.
hi ,
i have 1.6 years of experience in Javafx and have develop several application.
i have worked on your problem and found some solution ,
i)the url passed should be in the latest format to play youtube videos.
ii)there is a bug in webview of javafx as it leaks some memory while playing youtube videos.
i am ready to solve these bugs.
so, for any details feel free to contact me on chat.
Thanks & Regards
Hello,
I have downloaded the source code and I have ran it several times. Videos look to load normal. So far I could not reproduce the error. Can you please press the "Learn Moe" button and append the text? Can you try playing another video? Thanks