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



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. Great stuff!!!

The clickLink functi

View Tutorial          By: Harro at 2008-10-13 07:25:26

2. I am new to this concept..It is really very useful
View Tutorial          By: karthiga at 2013-01-02 11:20:38

3. thank u.....
View Tutorial          By: DiptaRanjan at 2013-02-02 14:56:45

4. It's good working very well...............
View Tutorial          By: avinash at 2013-03-07 09:38:21

5. HI can you send "send sms" program throg
View Tutorial          By: manav at 2010-05-09 12:54:52

6. I want java
View Tutorial          By: A.S.Vtihyatharan at 2009-12-01 03:25:36

7. really helpul........
pls mail me some more

View Tutorial          By: shivani at 2010-07-17 01:47:30

8. I am deveolper in envision .i am interested in scj
View Tutorial          By: shiva kumar at 2013-02-20 05:51:42

9. To handle multiple submit buttons you can use stan
View Tutorial          By: Vic at 2008-12-23 12:03:43

10. Hi, I need the complete working code for recieving
View Tutorial          By: Issam at 2008-09-26 01:24:04