B4J Question looping mediaplayer

Status
Not open for further replies.

Olivier Zeegers

Member
Licensed User
Hello,

Why is the property looping not avaible for mediaplayer as in other examples in this forum ?
Library not up to date?

B4X:
    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

Member
Licensed User
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:

B4X:
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
Status
Not open for further replies.
Top