954,559 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

playlist track by track duration (wmp)

Hello everyone! i'm working on a project that takes the path of a playlist from a ms common dialog control then it have to give the name of each track and its duartion....

i succeeded to take the path... and i wrote a code that gives the name and the duration, but the problem is when i set the windows media player URL properties to the path of the palylist it works.. but when i set it in the code it gives only the name of the first track and its duration....

this is my code and i attached the prog to understand more my problem:

Dim caption1 As String
Dim caption2 As String
Dim var As Integer
Dim i As Byte

var = WindowsMediaPlayer1.currentPlaylist.Count

 For i = 0 To var - 1
    caption1 = WindowsMediaPlayer1.currentMedia.durationString
    caption2 = WindowsMediaPlayer1.currentMedia.Name
    Label3(i).Caption = caption1
    Label4(i).Caption = caption2
    WindowsMediaPlayer1.Controls.Next
 Next i
Attachments project_of_el_eza3a.zip (8.82KB)
antoine magdi
Newbie Poster
1 post since Apr 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You