B4J Question Using the Media Player


Licensed User
Longtime User
Hey all,

Got another question :) When using the Media Player, what do I use for the 'URI' field? I have a wav in my assets folder I was hoping to play, but can't find a way to initialize it. Any help would be greatly appreciated!

Many thanks and best wishes,



New Member
Licensed User
Longtime User

I have a similar problem with the Media Player.

First of all, which audio file types are supported?

Secondly, I can't initialize any file I try. Erel said (post #2 above) that the file needs to be copied to the temp folder. Which temp folder is that? C:\Windows\temp ? I tried that but it didn't work. And should I also have the file in the project's "Files" folder? I'm on Windows 7 64bit.

I get this error message:

Error occurred on line: 48 (main).
java.lang.IllegalArgumentException: uri.getScheme() == null!

Any ideas?

Marko F.
Upvote 0