使用JavaFx 8播放ts文件

时间:2017-03-30 13:46:12

标签: java javafx-8

我正在尝试在Javafx媒体播放器上运行ts文件,但我得到了这个例外:

Exception in thread "JavaFX Application Thread" MediaException: MEDIA_UNSUPPORTED : Unrecognized file signature!
at javafx.scene.media.Media.<init>(Media.java:411)
at vod_player.media_player.MyMediaPlayerController.showPlayer(MyMediaPlayerController.java:69)
at vod_player.media_player.MyMediaPlayerController$1.lambda$0(MyMediaPlayerController.java:332)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:745)

有没有办法用javafx玩ts?

0 个答案:

没有答案