×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    2

    How To Implement Next/Previous in Music Player

    Hi Friends,

    I have been developing a music player application on s60 3rd edition....But while incorporating the progress bar the MapCInitComplete function is creating problem.I have initialised my player class object in container's ConstructL so that init complete is called b4 we move on to handle commandL.
    Play,pause and stop is working fine but problem is with next and previous options where if I call NewFilePlayerL() then MapCInitComplete will be called only after all the functions are executed and reaches the end of HandleCommandL.So progress bar is not working since b4 initialisation we can't derive the duration.

    I require ur help and its urgent..............................

  2. #2
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: How To Implement Next/Previous in Music Player

    Hi riya_26,

    i think your problem is while playing a file you want to move on next file to play, in this case first you just is any file is playing if yes then stop the file and play the next.
    you need to set the status of file like: playing, playComplete like this;
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  3. #3
    Registered User
    Join Date
    May 2007
    Posts
    2

    Re: How To Implement Next/Previous in Music Player

    Thanx 4 ur reply Jitendra.

    All these things are perfect.But the problem lies that mapcinit is called ony when handlecommandL is complete.I have to cal the progress bar functions within the case for next and since initialisation takes place last i cannot retrieve the duration of the track which needs to be passed as an argument to my progress bar's timer.even a call to play within the case is not working due to the initialisation taking place after evrythin ...........

    Is their any other way to go about things.............

  4. #4
    Registered User
    Join Date
    Jun 2007
    Posts
    5

    Re: How To Implement Next/Previous in Music Player

    how to implement next/previous in default audio player of s60 emulartor..

    i wrote the code fro file browsing, in that i store some songs in a folder and from there it self with in the options we created commands like play,stop,pause...in the same way, i like to have the next and previous commands to be added and make them function.so . i request you friends to help me how to write the code for this next and previous buttons...

    awaiting for replies..

    saran.

Similar Threads

  1. Nokia 5300 Music Player
    By TeeEff in forum General Development Questions
    Replies: 4
    Last Post: 2008-06-28, 12:43
  2. Unable to start Music Player on Emulator
    By titani2 in forum Mobile Java General
    Replies: 2
    Last Post: 2007-03-02, 13:10
  3. Nokia Music Player
    By eido_gat in forum General Development Questions
    Replies: 4
    Last Post: 2006-06-16, 10:30
  4. Replies: 0
    Last Post: 2004-01-27, 00:39

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×