我正在尝试在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?