java - JavaFX WebEngine Video Playback in Linux -


We currently have issues developing within our WebWives in JavaFX on our Linux RedHat 6 environment. Using JavaFX 2.2 and Java 1.7.0.51, we have a web developer who goes to an HTML page with a video tag in it.

This works perfectly on our windows box, but we get the following exception on the Linux box:

  Exception in thread "JavaFX application thread" java.lang .IllegalThreadStateException at java.lang.Thread.start com.sun.webpane.sg.prism.WCMediaPlayerImpl.prepareToPlay (WCMediaPlayerImpl.java208) (Thread.java:704) com.sun.webpane.platform.graphics.WCMediaPlayer.fwkPrepareToPlay (WCMediaPlayer.java jun90) com.sun.webpane.platform.WebPage.twkProcessMouseEvent (Native Method) at com.sun.webpane.platform.WebPage.dispatchMouseEvent (WebPage.java:751) javafx.scene.web.WebView but but. On javafx.scene.web on processMouseEvent (WebView.java:983) javafx.scene.web.WebView.access $ 2600 (WebView.java:81) javafx.scene.web.WebView $ 14.handle (WebView.java:1136 ) On .webView $ 14.handle com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent (CompositeEventHandler.java:64) (WebView.java1134) com.sun.javafx.event.EventHandlerManager.dispa at Com.sun. Jquafx.event.CompositeEventDispatcher.dispatchBubblingEvent (compositeEventDispatcher.java38) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent (EventHandlerManager.java:170) on com.sun tchBubblingEvent (EventHandlerManager.java December 17) .javafx.event.BasicEventDispatcher .dispatchEvent (BasicEventDispatcher.java37) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent (eventDispatchChainImpl.java:92) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent (BasicEventDispatcher.java: 35) com.sun.javafx .event.EventDispatchChainImpl.disp AtchEvent (EventDispatchChainImpl.java:92) at com.sun.javafx.event.EventUtil.fireEventImpl (EventUtil.java:53) at com.sun.javafx.event at. On EventUtil.fireEvent javafx.event.Event.fireEvent (Event.java:171) to (EventUtil.java:33) javafx.scene.Scene $ MouseHandler.process (Scene.java:3369) on javafx.scene.Scene $ MouseHandler Kprocess (Scenekjava:320 9) on javafx.scene.Scene $ MouseHandler.access $ at 1900 javafx.scene.Scene.impl_processMouseEvent (Scene.java:1582) (Scene.java:3164) javafx.scene.Scene $ ScenePeerListener.mouseEvent (Scene.javamore267) at com.sun.javafx.tk.quantum at .EmbeddedScene com on $ 2 $ 1.run (EmbeddedScene.java194) com.sun.javafx.tk.quantum.EmbeddedScene $ 2 $ 1.run (EmbeddedScene.java:176) java.security.AccessController.doPrivileged (Native method .sun.javafx.tk.quantum.EmbeddedScene $ 2.run (EmbeddedScene.java:176) on) com.sun On $ 4 $ 1.run (PlatformImpl.java:182) .javafx.application.PlatformImpl com.sun.javafx.application Platform on Java.security.AccessController Inpapl $ 4 $ Lkr (Platform Impl.java:179) (Basic Law on com.sun.javafx.application.PlatformImpl $ 4.run) on Comksunkglass (platform Impl. Java: 179) com.sun.glass.ui.gtk.GtkApplication $ 3 $ 1.run.ui.InvokeLaterDispatcher $ Future.run (InvokeLaterDispatcher.java:76) com.sun.glass.ui.gtk.GtkApplication._runLoop (Native method) at (Jitikeaplifikeshnkjawaः 8 9) .lang.Thread.run Java (Thread.java:744)  

I'll tell you frankly, it appears that Jawaaksaks The thread originating from is dying when it is trying to load Is the movie Are there any experiences of this nature? Any thoughts to try? We have tried to use very specific codec versions of H-264, but it did not work any ideas on how to install your Linux / javafx environment for video playback in JavaFX WebView. .

In addition to this, there is a swing with embedded Java Fx to clarify the application, though it still happens in pure JavaFX implementation, a little different exceptions

thanks, Nathan < / P>

Update: It seems that we do not have codecs installed correctly. Tomorrow will be updated with an answer for future reference.

It seems that we did not have any correct / correct codecs in the OS and that the codec While there should be a very specific version, Redhat 6.5 is not supported by the configuration, it still works as an advertisement on distribution. The codecs we are using are: libavcodec52 and libavformat52, as outlined here:

It is a shame that this exception has not given any clarification of what is actually going wrong. .


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -