且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法使用javaFx Webview在网页中显示视频(视频在给定的URL上实时显示)

更新时间:2023-10-28 13:58:52

您写的内容似乎运行良好.我在javafx 13上尝试了它,然后才起作用. 在将其粘贴到***中时,您在几个地方错过了括号.除此之外,我没有看到任何错误.只需升级您的javafx,它就可以正常工作.

It seems to be working fine what you wrote. I tried it on javafx 13 and it just worked. You missed brackets in a couple of places while pasting it in ***. Other than that I didn't see any mistake. Just upgrade your javafx and it should work.

这是一个工作示例,其中包含您的确切代码

Here is a working example with your exact code

https://github.com/shashaanktulsyan/java-javafx-maven-learning-tips/tree/master/nu-sharabheshwara-adesh_singh-webview

mvn javafx:run 应该工作.