B4J Question Needed: a short example using MediaPlayer

Discussion in 'B4J Questions' started by wdegler, Jul 8, 2014.

  1. wdegler

    wdegler Active Member Licensed User

    At this point in my present endeavors, I need to play a short mp3 file but I am confused about the parameters for the Initialize function. An example and/or a tutorial about MediaPlayer will be much appreciated.

    Walter Danny Degler
     
  2. Erel

    Erel Administrator Staff Member Licensed User

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

    rwblinn Well-Known Member Licensed User

    Hi,

    B4J HOWTO Example Project here.
     
    inakigarm and Johan Hormaza like this.
  4. wdegler

    wdegler Active Member Licensed User

    Thank you, Erel, for the information; this is exactly what I need!
    Thank you for the information; I can now proceed.
     
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