Olivier Zeegers Active Member Licensed User Jan 16, 2019 #1 Hello, Why is the property looping not avaible for mediaplayer as in other examples in this forum ? Library not up to date? Code: Copy Dim m As MediaPlayer m.Initialize("m",File.GetUri("D:\Kiwanis\2018-2019\Sportcommissie\DonkerRun\Rode Knop","loop.mp4")) m.looping = true gives error... looping is not an available property in the popup list
Hello, Why is the property looping not avaible for mediaplayer as in other examples in this forum ? Library not up to date? Code: Copy Dim m As MediaPlayer m.Initialize("m",File.GetUri("D:\Kiwanis\2018-2019\Sportcommissie\DonkerRun\Rode Knop","loop.mp4")) m.looping = true gives error... looping is not an available property in the popup list
Olivier Zeegers Active Member Licensed User Jan 28, 2019 #21 When I click a lot of times on the mouse I finally get this Exception: MediaException: UNKNOWN : [com.sun.media.jfxmediaimpl.platform.gstreamer.GSTMediaPlayer@d66c246] ERROR_MEDIA_INVALID: ERROR_MEDIA_INVALID at javafx.scene.media.MediaException.getMediaException(MediaException.java:160) at javafx.scene.media.MediaPlayer$_MediaErrorListener.onError(MediaPlayer.java:2615) at com.sun.media.jfxmediaimpl.NativeMediaPlayer$EventQueueThread.HandleErrorEvents(NativeMediaPlayer.java:691) at com.sun.media.jfxmediaimpl.NativeMediaPlayer$EventQueueThread.run(NativeMediaPlayer.java:425) I tried a search on the forum and found this thread: https://www.b4x.com/android/forum/threads/exception-using-mediaplayer.86736/#content I use this code: Code: Copy money.Initialize(File.GetUri("","Cha_Ching_Register-Muska666-173262285.wav")) this is not in the assets folder i think ? why does it work a lot of times in the beginning en suddenly gives an error ? do I have to search more myself ? or open a different thread for this ? I feel like being a total newbie and asking a lot of questions... sorry Upvote 0
When I click a lot of times on the mouse I finally get this Exception: MediaException: UNKNOWN : [com.sun.media.jfxmediaimpl.platform.gstreamer.GSTMediaPlayer@d66c246] ERROR_MEDIA_INVALID: ERROR_MEDIA_INVALID at javafx.scene.media.MediaException.getMediaException(MediaException.java:160) at javafx.scene.media.MediaPlayer$_MediaErrorListener.onError(MediaPlayer.java:2615) at com.sun.media.jfxmediaimpl.NativeMediaPlayer$EventQueueThread.HandleErrorEvents(NativeMediaPlayer.java:691) at com.sun.media.jfxmediaimpl.NativeMediaPlayer$EventQueueThread.run(NativeMediaPlayer.java:425) I tried a search on the forum and found this thread: https://www.b4x.com/android/forum/threads/exception-using-mediaplayer.86736/#content I use this code: Code: Copy money.Initialize(File.GetUri("","Cha_Ching_Register-Muska666-173262285.wav")) this is not in the assets folder i think ? why does it work a lot of times in the beginning en suddenly gives an error ? do I have to search more myself ? or open a different thread for this ? I feel like being a total newbie and asking a lot of questions... sorry
Erel B4X founder Staff member Licensed User Longtime User Jan 29, 2019 #22 You should always start a new thread for a new question. Upvote 0