Bug? MediaPlayer randomly stops playing

Discussion in 'B4J Bugs & Wishlist' started by ElliotHC, May 28, 2019.

  1. ElliotHC

    ElliotHC Active Member Licensed User

    I am using this code

    Code:
    Dim mp As MediaPlayer
    mp.Initialize(
    "mp"File.GetUri(File.DirAssets, "load.mp3"))
    mp.Play

    And for some unknown reason it won't play the whole thing. It will play anything from between about 2 seconds and 10 seconds..

    Seems a bit random.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    If it is a bug then it is a bug in JavaFX. Worth testing it with Java 11. Also see whether copying the file to File.DirData makes any difference.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice