Comment on Tutorial - Play a multimedia file in J2ME Program (Audio/Video) using MMAPI By Vikram Goyal



Comment Added by : Nithya

Comment Added at : 2011-08-31 02:27:48

Comment on Tutorial : Play a multimedia file in J2ME Program (Audio/Video) using MMAPI By Vikram Goyal
@All

You need to first keep your .wav file in src directory of your J2ME app.

Later, in that CreatePlayer, you can directly give as
Player player = Manager.createPlayer(getClass().getResourceAsStream("/flexible.wav"),"audio/x-wav");

It fetches flexible.wav under your src folder and plays the audio file. You can try this way. You wont get the Illegal Argument Exception.


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. I have a sample code in which,

obje

View Tutorial          By: Tan Mi at 2011-10-25 23:24:10

2. Its super explanation
View Tutorial          By: jose at 2011-12-08 13:36:29

3. This is starting program for me in j2me.This will
View Tutorial          By: Surya at 2010-07-26 03:29:47

4. Really great way of explanation..... :)
Tha

View Tutorial          By: akram at 2010-07-08 04:07:17

5. Thanks to the author, it was really a good tutoria
View Tutorial          By: Ashok Kumar at 2010-04-29 05:54:47

6. That was very nice yaar.
View Tutorial          By: sana at 2014-02-21 09:20:34

7. VERY good info. Providing By YOU Thanx.
View Tutorial          By: Ravi singh at 2013-11-14 08:56:34

8. very useful example. Thanks for this help.
View Tutorial          By: Saurabh at 2010-04-23 04:50:13

9. I executed this program with the help of below cod
View Tutorial          By: leela at 2011-09-08 12:16:24

10. In the case of Basic validation is it must to spec
View Tutorial          By: Uma shankar at 2014-07-09 00:58:05