Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Gavino" Newsgroups: comp.lang.java.programmer Subject: Re: i want to play mp3 for infinite time Date: Sun, 6 May 2012 21:34:34 +0200 Lines: 17 Message-ID: References: <22351436.624.1336324248195.JavaMail.geo-discussion-forums@pbctc10> X-Trace: individual.net hrG/sL90i4tspBbTFQ319AAxEBEgLbSmULQK6EgwtNFjkyVejzF9bjXxwA1pR62pJe Cancel-Lock: sha1:8tb2jC4K+WjF066rfImFGXrsaHU= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Xref: csiph.com comp.lang.java.programmer:14342 wrote in message news:22351436.624.1336324248195.JavaMail.geo-discussion-forums@pbctc10... > I want to play my mp3 file for infinite times, > help me to play this for infinite time in loop. > public void controllerUpdate(ControllerEvent e) > { > if (e instanceof EndOfMediaEvent) > { > playMP3.stop(); > playMP3.close(); Instead of closing the player, you should do this: playMP3.setMediaTime(new Time(0)); playMP3.start();