I'm working in a project of making clients. I wanted to make a Youtube Viewer Frame and followed the tips at Embed a YouTube video to JFrame?. However, the result is "Flash-embedded videos are no longer supported!".
So what can I do now to create a Youtube Viewer with Java Swing ?
Thank you so much !
public static JPanel getBrowserPanel() {
JPanel webBrowserPanel = new JPanel(new BorderLayout());
JWebBrowser webBrowser = new JWebBrowser();
webBrowserPanel.add(webBrowser, BorderLayout.CENTER);
webBrowser.setBarsVisible(false);
webBrowser.navigate("https://www.youtube.com/v/b-Cr0EWwaTk?fs=1");
return webBrowserPanel;
}