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. Hello Mr. Developer of above proj....plz let me kn
View Tutorial          By: Prakash Vishwakarma at 2011-07-08 10:02:22

2. I want a code to receive message from GSM modem us
View Tutorial          By: Mayur at 2011-04-05 00:00:05

3. vinod kumar for j2me app development we need one I
View Tutorial          By: saurabh dixit at 2013-04-18 09:59:23

4. when i copy paste your program or source code

View Tutorial          By: Zordan at 2011-03-17 04:28:08

5. This is very good Article. On high level I am anba
View Tutorial          By: Sandeep at 2010-08-27 00:40:22

6. thanks bro it worked for me ....keep it up.
View Tutorial          By: azhar at 2010-12-27 00:44:36

7. i am getting an exceptions... pls help me..

View Tutorial          By: FEBI at 2014-03-08 06:01:44

8. can you gave us a sample form that has a design
View Tutorial          By: niknik at 2011-07-01 09:39:21

9. I tried to use excute this code to retreive record
View Tutorial          By: PL at 2013-08-27 02:58:55

10. Hii... pls how can I create a aerver with an inter
View Tutorial          By: WAZIRI at 2010-03-16 11:12:11