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. javax.microedition.io.ConnectionNotFoundException:
View Tutorial          By: yellaiah at 2014-12-27 05:18:52

2. Nice Tips thank you
View Tutorial          By: Giritharan at 2013-04-11 09:24:37

3. thank you..!!
really very helpful...

View Tutorial          By: sneha at 2012-01-30 18:01:16

4. it is really BEST answer of my question.
MR

View Tutorial          By: Ramesh genwa at 2010-09-09 07:15:37

5. Thanks alot ,,, it is really more the excellent n
View Tutorial          By: SaraFaqera at 2013-12-16 16:00:07

6. Simple Codes please... I just wonder why does my p
View Tutorial          By: Joseph at 2009-11-12 05:37:50

7. Looks good. This is going to be a good resource.
View Tutorial          By: Brainpower at 2013-03-02 02:45:11

8. Thanks mate !!!

-- Anish Sneh

View Tutorial          By: Anish Sneh at 2010-08-18 07:42:56

9. Declaring int result within the method will change
View Tutorial          By: Soph at 2013-02-06 06:11:39

10. this code is very and help in our project BUT
View Tutorial          By: bhamre sandeep at 2010-02-28 03:02:53