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. when i was running this code... it is giving me th
View Tutorial          By: Nilesh Agrawal at 2012-06-08 15:08:25

2. Hello
I installed Android in eclipse...only

View Tutorial          By: amit kumar at 2012-01-19 11:04:55

3. sir, i want if,if else,nested if..... concept in o
View Tutorial          By: krishna at 2015-08-14 08:58:01

4. thanks f0r this p0st... it heLped me much... keep
View Tutorial          By: martz at 2009-04-29 02:27:19

5. That's a very nice and simple article,
Tha

View Tutorial          By: Mohsen at 2009-10-11 03:07:18

6. It's simply nice.
View Tutorial          By: ghani at 2011-07-01 07:18:35

7. sir, am doing my mca project in java based on netw
View Tutorial          By: saravanapriya at 2011-11-24 03:25:06

8. Dear author
u missed check condition for 0(

View Tutorial          By: Maroof Ahmad at 2012-03-28 14:59:53

9. Very good tutorial!
View Tutorial          By: Herve at 2011-04-04 08:06:21

10. good tutorial for beginners..........
View Tutorial          By: Madarapu naveen at 2011-06-18 11:19:50