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. very nice explanation of STATIC....HAY man , you j
View Tutorial          By: harkeet at 2012-12-18 17:48:43

2. i am try this codeing in vb . i am using nokia n73
View Tutorial          By: kanyaraj at 2010-02-09 19:10:10

3. Hello, I have executed the above code and it works
View Tutorial          By: Sana at 2010-02-01 03:49:44

4. I am getting error in setContentView(R.layout.main
View Tutorial          By: user at 2012-01-13 06:49:42

5. yes simple good it wroking goog
View Tutorial          By: durga prasad pavirala at 2009-02-11 03:43:04

6. Good and Effective example
thank you

View Tutorial          By: Perumal Naren at 2009-12-30 03:10:50

7. GOOD FOR BIGGENERS
View Tutorial          By: naresh at 2012-08-04 11:19:03

8. You have stretch it more then enough even then the
View Tutorial          By: Chirag at 2012-12-04 16:15:13

9. Excellent example
View Tutorial          By: Dinesh Patil at 2012-06-19 08:30:48

10. Nice tutorial
View Tutorial          By: Sai at 2010-09-23 21:52:38