1

I created a web browser using WebView and WebEngine classes of JavaFX. It is working fine but not able to play videos. It is opening youtube.com but is not playing videos of youtube. It is asking to install Adobe flash player. Even after installing, the problem is same. Do I have to integrate some plug-in of Adobe Flash Player in my Java code. If yes, how? Or there is some other solution. Kindly help.

1 Answer 1

2

WebView in JavaFX 2.2 does not support plugin based content such as Flash content.

As alternatives, for launching YouTube video content from JavaFX you can use:

  1. HostServices.showDocument go launch flash content in the default system web browser OR
  2. YouTube's iframe embedding API in WebView rather than it's flash interface.

The YouTube iframe embedding API embeds html5 video content, rather than flash video content and html5 video content works in WebView.

For more info, see http://www.youtube.com/html5

Sign up to request clarification or add additional context in comments.

1 Comment

no.1 using HostService,... how can we implement that? for instance my situation here is if the webpage containing an iframe of that loaded flash...? @jewelsea....

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.