Home Answers Viewqa Java-Beginners how to stop audio (mp3)

 
 


shruti gupta
how to stop audio (mp3)
2 Answer(s)      a year and 9 months ago
Posted in : Java Beginners

if(e.getActionCommand(). equals("Stop")){ player.stop(); }

i am making an audio player in which i have to stop a song. on writing player.close() it pauses the song rather than stopping it. how should i stop the song keeping in mind i have to play another song later.

View Answers

August 4, 2011 at 10:25 AM


Please go through the following link:

http://www.roseindia.net/j2me/video-midlet.shtml


August 4, 2011 at 7:17 PM


but i am not playing mp3 on mobile..i want to make a normal audio player in java for computer









Related Pages:
how to stop audio (mp3)
how to stop audio (mp3)   if(e.getActionCommand(). equals("Stop")){ player.stop(); } i am making an audio player in which i... stopping it. how should i stop the song keeping in mind i have to play another song
Java how to stop audio
Java how to stop audio  hello i have this code in the main: try { AudioInputStream audio = AudioSystem.getAudioInputStream(new File...); } I want that when i press the stop button in the gui, the audio stops
converter code for audio file
converter code for audio file  how can i convert a audio file to a another file format like mp3
Playing mp3 file in Java...
Playing mp3 file in Java...  I created frame with play and stop buttons and added separate ActionListener to those buttons but i can't stop the music while playing
stop repetition
stop repetition  i want to know use of Hashmap, and its contains key... record more than one time. so could u please guide me how to handle this problem... they have same id so i want to stop repetition
how to play audio track in java applat
how to play audio track in java applat  Sir,i took help of coding in how to play audio track in java applet....nd i found perfect code ..but when i... file...as u see there is no main claas in this coding then how would i run dis
How to stop the execution of midlet in j2me?
How to stop the execution of midlet in j2me?  Hi, How to stop the execution of midlet of j2me for a specific amount of time? Thanks & Regards, Sivakumar.J
Play Audio in Java Applet
the sound file. This program will show you how to play a audio clip in your java applet... is used to play the sound while stop() method is used for stop the running audio... Play Audio in Java Applet      
stop the running hidden server
will need to stop the other process or change the port number(s). how to stop tis...stop the running hidden server  Port 8080 required by Tomcat v6.0 Server at localhost is already in use. The server may already be running in another
iPhone play, pause and stop playing music
iPhone play, pause and stop playing music This is the small iPhone SDK example that will show you how to play, pause and stop the music on button... that just drag and paste the music or audio file into the resources folder, which
ffmpeg audio from video
ffmpeg audio from video  Hi, How to extract audio from a video file? Thanks
What is AAC?
, or DRM, which can be used to control how the audio file is used. ACC is also...; AAC,  the abbreviation of  Advanced Audio Coding, is a technique for compressing digital audio files. It is conceptually similar to the existing
HTML5 audio reference
HTML5 audio reference  Hi, Tell me the best url to learn HTML5 audio tags with examples. Thanks   Hi, Learn how to use HTML5 audio tags to play the audio on web page. The HTML5 audio tag is used to play the video
audio video conferencing
audio video conferencing  how to develop a chat application in peer to peer setup
Broadcasting audio.. - JSP-Servlet
Broadcasting audio..  i am doing a project on Internet radio. I embeded windows media player,but doesnt know how to broadcast...i need to stream the audio. can anyone give a solution for this. Its very urgent
playing an audio file
how to solve this problem and also tell me where i should pass my audio clip...playing an audio file  In playing an audio file we have to take one method getAudioClip(getCodeBase(), "TestSnd.wav") inside that getCodeBase
Open Source MP3 Player
available for both MP3 and WAV audio formats. * Tag viewer improved to display ID3..., Licenses Xing GoodNoise Corp has waded into the battle over the MP3 audio... over and over.    Open-source audio wins MP3 player support
how to add audio clip in swings with event handling
how to add audio clip in swings with event handling  hello dear, i wanna to play audio clip in java program in JFrame in swings by event handling ,it should be like when i click on a button , audio clip should play , plz tell me
how to allow or stop using internet - Java Server Faces Questions
how to allow or stop using internet  hello this is my first qusetion I am developing a cybercafe management tool in java,the problem is how to allow or stop the users of cafe using internet by the administrator on other
How to raise an event on a flash mp3 player after 30 seconds from starting song..?
How to raise an event on a flash mp3 player after 30 seconds from starting song..?  Can you help me for writing a couple of codes in action script... to learn new things. I have one flash player (flabell mp3 player with playlist
Audio MIDlet Example
Audio MIDlet Example       This example illustrates how to play audio songs in your... a player for an audio song by using of javax.microedition.media API. As you
Audio files,IDE - Design concepts & design patterns
Audio files,IDE  HI! Gurus.I am david.i am a new to Java.i need detailed explanation on how to Create Audio files using Java language.Also i need... how to create games using Java?Please send answers to to this Questions to my E
how to run audio files in net beans using j2me
how to run audio files in net beans using j2me  i am running the audioMidlet in net beans. Now where should i place the .wav files inorder to play them
upload and download mp3
upload and download mp3   code of upload and download Mp3 file in mysql database using jsp and plz mention which data type used to store mp3 file in mysql database
audio files in jdbc connectivity with ms-access - JDBC
audio files in jdbc connectivity with ms-access  i need to know how to retrieve audio files through jdbc connectivity with ms-access and how to play them through link in browser....  Hi Friend, Try the following code
How to stop java scripting engine when the script being run is taking too much time?
How to stop java scripting engine when the script being run is taking too much time?   How to stop java scripting engine when the script being run is taking too much time? for e,g, in case of infinite loop the memory is getting
mp3 player in c# GUI - Framework
mp3 player in c# GUI  Q. I WANT TO CREATE A MP3 PLAYER IN C# WITH SOUND CONTROL AND PROGRESS BAR
Embedding sound in Flex4
Embedding sound in Flex4: You can embedded and play mp3 sound in flex application. In this example we have used two buttons to play and stop the music. In this example you will see how we can embedded a sound in a flex application
Audio
low CPU usage. There are slightly different ways of playing audio from an applet and from an application. Where to learn about Java audio A good way to learn about audio is to read the "Sound" section of the Java Tutorial (see Other
flex didn't know how to drag and drop video and audio in flip book - Framework
flex didn't know how to drag and drop video and audio in flip book  ... target to add the video audio and photo in this book i am able to add the photo in this book but i didn't able to add video and audio so pls help me for my project
Audio Processing
Audio Processing  Sir, I want implement an audio recognition system by using java.. Is it possible? and tell me the process... thank you
Code to STOP Students from navigating anywhere else till the Online exam is over
Code to STOP Students from navigating anywhere else till the Online exam is over  hi guys i am a final year student of engineering and i am working... or how to do so for BOTH VERSIONS i am using netbeans IDE but i will prefer
mp3act web mp3 ajax jukebox
mp3act web mp3 ajax jukebox       mp3act Digital Music Server is a PHP and MySQL driven mp3 web-based jukebox for playing music locally or streaming music to anywhere in the world
uploading audio file iphone
uploading audio file iphone  uploading audio file iphone
audio file to play automatically
audio file to play automatically  I want to get an audio file to play automatically when someone visits my site
HTML audio tag
HTML audio tag  Hi, I have written a simple html page to play audio file, I m using audio tag as shown below: Your browser does not support the audio tag. when I open the page using Chrome, it works fine(plays audio
Developer's Jukebox
;    This Eclipse 3.3 plug-in let's you import mp3 files (can... watch how it works. Editing By clicking a selected item or hitting F2, you can... are used: JavaZOOM mp3 SPI support JavaZOOM Vorbis
stop an infinite for loop - Java Beginners
stop an infinite for loop  class InfiniteForLoop{ public static void main(String[] args) { for(;;){ } } } i want this infinite for loop program to be stopped by another program named kill
Java Thread : stop() method
Java Thread : stop() method In this section we are going to describe stop() method with example in java thread. stop() method : Java thread provides method stop to stop any running thread. It is deprecated  as it causes
MX Sound Effect in Flex4
MX Sound Effect in Flex4: The Sound Effect plays an mp3 file when you perform an event. You will use the source property for specify the mp3 file. The tag...;/> In this example you can see how we can use a Sound Effect in your
stop word removal from text file
stop word removal from text file  i need java source code for stop word removal from a text file
HTML5 audio loop, Use of loop attribute of audio tag in  HTML5.
HTML5 audio loop, Use of loop attribute of audio tag in  HTML5. Introduction:Loop attribute is used for reputation of audio or music. It repeats audio file again, until you do not click any controls. It supports only Boolean
HTML5 audio autoplay, Use of autoplay attribute in audio tag.
HTML5 audio autoplay, Use of autoplay attribute in audio tag. Introduction:The autoplay is an audio tag attribute. It is only supported by HTML5. When it is present in audio tag, the music file will begin itself. or After loading
HTML5  audio tag example, Use of audio tag  in HTML5.
HTML5  audio tag example, Use of audio tag  in HTML5. Introduction:In this section, you will see the use and implementation of audio tag in HTML5. The <audio> tag is used to add audio in web page or HTML page. When
HTML5 audio autobuffer, Use of autobuffer attribute in audio tag.
HTML5 audio autobuffer, Use of autobuffer attribute in audio tag. Introduction:The autobuffer attribute has Boolean value. It is available in audio tag... in audio tag file; music will start buffering automatically . Declaration
HTML5 audio controls, Discuss the controls attribute of audio tag.
HTML5 audio controls, Discuss the controls attribute of audio tag. Introduction:The controls is attribute of audio. which is used for showing media player on browser. It supports only Boolean value. If it is present in audio tag
J2ME Audio Record
J2ME Audio Record       This example is used to record the audio sound  and play the recorded sound. In this example we are trying to capture the audio sound and encoded
Need simple java code to start and stop the remote windows service.
Need simple java code to start and stop the remote windows service.  Hi, I Need simple java code to start and stop the remote windows service. Example:There are two servers 1) Server A and 2) Server B. If a notepad.exe file
Assertions
Java NotesAssertions Assertions are used to stop execution when... way to stop many bugs before they go too far. Two forms of the assert statement... the extra typing. assert n > 0; How to figure out

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.