dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Page 3 of 5 FirstFirst 12345 LastLast
Results 31 to 45 of 66

Thread: Help in Debugging this MP3 Player

  1. #31
    Join Date
    Mar 2008
    Posts
    130
    @hack

    sir i hope your still there i really need your help..your the only one replying on my thread..T_T

  2. #32
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Quote Originally Posted by chokies12
    but i dont know how to play the files that are on the list...
    I'll give you a hint....use the listbox's text property.

  3. #33
    Join Date
    Mar 2008
    Posts
    130
    I'll give you a hint....use the listbox's text property.
    sir im very very sorry..i dont get it..
    how will i connect my playbutton to the listbox?

  4. #34
    Join Date
    Mar 2008
    Posts
    130
    Code:
    On Error GoTo error                   'Handle Error
       'Set objects
       Set Player = New FilgraphManager   'Player
       Set PlayerPos = Player             'Position
       Set PlayerAU = Player              'Volume
    
       Player.RenderFile txtFile.Text     'Load file
       Player.RenderFile (List1.Selected)
       
       AdjustVolume                       'Set Volume
       Player.Run                         'Run player
       PlayerIsPlaying = True             'We are playing
       lblStatus.Caption = "Playing..."   'status ng player
       CmdBrowse.Enabled = False          'No file open before stop
       txtFile.Enabled = False            'No change
    here's my code in my play button..tried adding this
    Player.RenderFile (List1.Selected) to my play command but seems doesnt work..i just guess it..

  5. #35
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    What property did I say to use?

    Was it .Selected?

  6. #36
    Join Date
    Mar 2008
    Posts
    130
    **** i got it..used list1.text to renderfile remove txtfile.text i think its making some conflict with my list1.text cause i added it earlier and it did not run..now my another plan is play the next song in the list..

    SO MUCH THANK YOU TO YOU SIR YOUR HELPING ME A LOT..

  7. #37
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    At the end of the song, increment the ListIndex by 1 and try running play again.

  8. #38
    Join Date
    Mar 2008
    Posts
    130
    where should i declare list1.listindex +1?

  9. #39
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    How do you want to play the next song?

    Immedidately after the current song stops, or after you make another selection, or the option of both?

  10. #40
    Join Date
    Mar 2008
    Posts
    130
    after the current song stop..i have a add/remove button so i can edit my playlist..just need to make the nextsong play after the current one finish..

  11. #41
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Quote Originally Posted by chokies12
    just need to make the nextsong play after the current one finish..
    Yes, but do you want it to start automatically?

  12. #42
    Join Date
    Mar 2008
    Posts
    130
    yup i want it to start automaticaly after the current song finishes..

  13. #43
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Then you would need to play about with the ListIndex property.

  14. #44
    Join Date
    Mar 2008
    Posts
    130
    Then you would need to play about with the ListIndex property.
    hello sir good day..dont have idea about this..

  15. #45
    Join Date
    Mar 2008
    Posts
    130
    @sir hack

    sir remember the code you gave me on how to load all the mp3 in the folder..when i load it to my list it doesnt play..

Similar Threads

  1. automatic mp3 player
    By xiaobai00 in forum VB Classic
    Replies: 3
    Last Post: 10-29-2007, 06:37 PM
  2. play mp3 without windows media player
    By Psirus in forum VB Classic
    Replies: 0
    Last Post: 11-23-2000, 07:52 AM
  3. play mp3 without windows media player
    By Psirus in forum VB Classic
    Replies: 0
    Last Post: 11-23-2000, 07:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center