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. hellow my name is samer, i have a project of final
View Tutorial          By: samer flayha at 2011-08-17 09:37:16

2. good code
View Tutorial          By: neha at 2011-07-02 01:46:52

3. EJB's can be deployed on multiple servers and when
View Tutorial          By: Tomek at 2011-09-12 12:29:07

4. can you plase give an exmple of what should i put
View Tutorial          By: Or at 2013-02-16 11:32:17

5. Hey, this is a great explanation regarding the dif
View Tutorial          By: foam roofing at 2011-04-02 17:26:52

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

7. i run this program. its not showing any runtime or
View Tutorial          By: anand sp at 2011-03-07 10:11:37

8. Dudes

I used the abov

View Tutorial          By: Nithin p at 2013-01-06 06:54:33

9. can u give video of this code how it work & w
View Tutorial          By: vishal mande at 2015-04-04 08:20:30

10. Hai everyone,I am getting error like *** time out
View Tutorial          By: Prasad at 2011-08-30 06:28:44