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

media player object

hi!
i am trying to change the title of a media player object:

Private Sub stam()
Dim wm As New WindowsMediaPlayer
wm.URL = "C:\Documents and Settings\All Users\Documents\My Music\Sample Music\New Stories (Highway Blues).mpg"
MsgBox wm.currentPlaylist.getItemInfo("title")
wm.setItemInfo("title" ,"hello")
End Sub

the getitemifo works well, but not the setiteminfo
i get a messege: "compiler error expected ="
why?

odelya
Newbie Poster
2 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

Isn't setItemInfo applicable only to something like currentPlaylist or currentMedia?

About the error, try removing parenthesis when calling setItemInfo.

Is that VB6, BTW?

Alvein
Junior Poster
104 posts since Jul 2005
Reputation Points: 12
Solved Threads: 4
 

it's VBA
what do you mean about removing parenthesis?
i tried adding currentplayerlist...
thanx a million

odelya
Newbie Poster
2 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

Cool

what do you mean about removing parenthesis?

I was talkin about to not use brackets in wm.setItemInfo("title" ,"hello").

Alvein
Junior Poster
104 posts since Jul 2005
Reputation Points: 12
Solved Threads: 4
 

iPrivate Sub stam() Dim wm As New WindowsMediaPlayer wm.URL = "C:\Documents and Settings\All Users\Documents\My Music\Sample Music\New Stories (Highway Blues).mpg" MsgBox wm.currentPlaylist.getItemInfo("title") wm.setItemInfo("title" ,"hello") End Sub

why?


can i ask what is the use of this?

and can i ask how to create a media player in the vb6 or can i borrow a sample of ur project coz i want to learn how to make it and how to upload a music in my project

technogeek_42
Posting Whiz in Training
256 posts since Dec 2007
Reputation Points: -10
Solved Threads: 3
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You