DBChoco / Salawat

A prayer times (Adhan) app for Windows and GNU/Linux written in JavaFX.
MIT License
24 stars 0 forks source link

Can't play audio with snapcraft version #2

Closed DBChoco closed 2 years ago

DBChoco commented 2 years ago
Exception in thread "JavaFX Application Thread" MediaException: UNKNOWN : com.sun.media.jfxmedia.MediaException: Could not create player! : com.sun.media.jfxmedia.MediaException: Could not create player!
        at javafx.scene.media.MediaException.exceptionToMediaException(MediaException.java:146)
        at javafx.scene.media.MediaPlayer.init(MediaPlayer.java:519)
        at javafx.scene.media.MediaPlayer.<init>(MediaPlayer.java:422)
        at io.github.dbchoco.Salawat.app.AudioPlayer.playMedia(AudioPlayer.java:67)
        at io.github.dbchoco.Salawat.app.AudioPlayer.play(AudioPlayer.java:34)
        at io.github.dbchoco.Salawat.controllers.main.FooterController$2.handle(FooterController.java:84)
        at io.github.dbchoco.Salawat.controllers.main.FooterController$2.handle(FooterController.java:82)
        at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:234)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
        at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
        at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
        at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
        at javafx.event.Event.fireEvent(Event.java:198)
        at javafx.scene.Scene$ClickGenerator.postProcess(Scene.java:3586)
        at javafx.scene.Scene$MouseHandler.process(Scene.java:3890)
        at javafx.scene.Scene.processMouseEvent(Scene.java:1874)
        at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2607)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:411)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:301)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:450)
        at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:425)
        at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:449)
        at com.sun.glass.ui.View.handleMouseEvent(View.java:557)
        at com.sun.glass.ui.View.notifyMouse(View.java:943)
        at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
        at com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:290)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: com.sun.media.jfxmedia.MediaException: Could not create player!
        at com.sun.media.jfxmediaimpl.NativeMediaManager.getPlayer(NativeMediaManager.java:297)
        at com.sun.media.jfxmedia.MediaManager.getPlayer(MediaManager.java:118)
        at javafx.scene.media.MediaPlayer.init(MediaPlayer.java:475)
        ... 33 more
DBChoco commented 2 years ago

fixed : https://github.com/DBChoco/Salawat/commit/1d44243fe8263c7c2e0c0e934f83c354af5f75da

DBChoco commented 2 years ago

also fixed connection problem