Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #14349

Re: i want to play mp3 for infinite time

From Lew <noone@lewscanon.com>
Newsgroups comp.lang.java.programmer
Subject Re: i want to play mp3 for infinite time
Date 2012-05-06 21:00 -0700
Organization albasani.net
Message-ID <jo7hdc$rhf$1@news.albasani.net> (permalink)
References <22351436.624.1336324248195.JavaMail.geo-discussion-forums@pbctc10> <a0o22pF437U1@mid.individual.net>

Show all headers | View raw


Gavino wrote:
> chetan1991 wrote ...
>> 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();

Also, follow the Java naming and source indentation conventions.

<http://www.oracle.com/technetwork/java/codeconv-138413.html>

-- 
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

i want to play mp3 for infinite time chetan1991@gmail.com - 2012-05-06 10:10 -0700
  Re: i want to play mp3 for infinite time "Gavino" <invalid@invalid.invalid> - 2012-05-06 21:34 +0200
    Re: i want to play mp3 for infinite time Lew <noone@lewscanon.com> - 2012-05-06 21:00 -0700
      Re: i want to play mp3 for infinite time Knute Johnson <nospam@knutejohnson.com> - 2012-05-06 21:46 -0700
        Re: i want to play mp3 for infinite time "Gavino" <invalid@invalid.invalid> - 2012-05-07 19:36 +0200
          Re: i want to play mp3 for infinite time Knute Johnson <nospam@knutejohnson.com> - 2012-05-07 21:54 -0700

csiph-web