Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User senthilkumar05's Avatar
    Join Date
    Feb 2006
    Location
    India
    Posts
    22
    Hi All,,,,
    I want to play more number(15) of files continuously ..
    For playing two audio files i Used two Player and when first player reaches the END_OF_MEDIA i started the second one..
    Please help me how to play more number of files.........
    Urgent plz.........
    thankz........

  2. #2
    how about something like this as an idea for starters?

    Code:
    // create an array of tunes
    String tuneArray[] = new String[15];
    tuneArray[0] = "/myTune1.mp3";
    ...
    ...
    tuneArray[14] = "/myTune15.mp3";
    
    // keep track of current tune
    byte currentTune = 0;
    
    // start the sequence off
    myPlayer = Manager.createPlayer(..... tuneArray[0] );
    myPlayer.start();
    
    // as soon as a player finishes start the next
    playerUpdate(.....   ) {
       if ( event == "END_OF_MEDIA" ) { 
           if (currentTune < tuneArray.length() ) currentTune +=1;
           else currentTune = 0;
           myPlayer = Manager.createPlayer(..... tuneArray[currentTune] );
           myPlayer.start();
       }
    }
    Last edited by swc43@blueyonder.co.uk; 2006-03-01 at 16:46.

  3. #3
    Registered User cars2003's Avatar
    Join Date
    Jul 2003
    Posts
    37
    Hi senthilkumar05,
    What do you mean with "I want to play more number(15) of files continuously"?
    Is it about playing 15 audio files without delay between them?
    I ever tried the way that swc43 suggested. Actually I tried only 1 audio files (wav), but I devided the file into array of bytes (20 kb) and tried to play every array of bytes simultaneously. But there's a delay on the music when the player changed from player 1 to player 2. Maybe it because I closed the first player before start the second player. I did it because seem my device cannot play more than 1 player in one time (I use Nokia 6270 to test it).

    Hi swc43, is there any nokia device that can start 2 player in one time?

    Maybe this link give an idea
    http://developer.sonyericsson.com/si...ous_sounds.jsp

  4. #4
    Super Contributor soku123's Avatar
    Join Date
    Feb 2006
    Posts
    689
    Hi senthilKumar,
    i dont think you can start two players simultaneously.Only if the player that is under action is closed,then the second player can be started...i dont think that by any other means you can start the second player...

    Regards
    Soku

  5. #5
    HI all,
    I dont know of any Nokias that can use more than one prefetched player at a time - the sony phones in the link you gave are the only ones I know of and even then this applies only to one midi and one wav - no other combinations.

Similar Threads

  1. Audio playing over RTP on 6600 and 6620.
    By ravinathwani in forum Symbian Media (Closed)
    Replies: 5
    Last Post: 2008-05-24, 09:49
  2. Playing audio streaming from small chunks.
    By khurshed79 in forum Symbian C++
    Replies: 1
    Last Post: 2007-07-09, 09:49
  3. Problems playing some wav audio formats using MMAPI (WTK22)
    By sandromancuso in forum Mobile Java General
    Replies: 0
    Last Post: 2005-01-18, 17:03
  4. Garbled audio while playing wav files in 7650
    By rajeevc in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2004-08-16, 13:45
  5. Playing MP3 files
    By pawans in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2003-03-31, 16:59

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved