media player object

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Aug 2005
Posts: 2
Reputation: odelya is an unknown quantity at this point 
Solved Threads: 0
odelya odelya is offline Offline
Newbie Poster

media player object

 
0
  #1
Aug 9th, 2005
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?
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 104
Reputation: Alvein is an unknown quantity at this point 
Solved Threads: 4
Alvein's Avatar
Alvein Alvein is offline Offline
Junior Poster

Re: media player object

 
0
  #2
Aug 10th, 2005
Isn't setItemInfo applicable only to something like currentPlaylist or currentMedia?

About the error, try removing parenthesis when calling setItemInfo.

Is that VB6, BTW?
Damn it, I still dream of her....:(
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 2
Reputation: odelya is an unknown quantity at this point 
Solved Threads: 0
odelya odelya is offline Offline
Newbie Poster

Re: media player object

 
0
  #3
Aug 17th, 2005
it's VBA
what do you mean about removing parenthesis?
i tried adding currentplayerlist...
thanx a million
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 104
Reputation: Alvein is an unknown quantity at this point 
Solved Threads: 4
Alvein's Avatar
Alvein Alvein is offline Offline
Junior Poster

Re: media player object

 
0
  #4
Aug 17th, 2005
Cool

Originally Posted by odelya
what do you mean about removing parenthesis?
I was talkin about to not use brackets in wm.setItemInfo("title" ,"hello").
Damn it, I still dream of her....:(
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 252
Reputation: technogeek_42 has a little shameless behaviour in the past 
Solved Threads: 3
technogeek_42's Avatar
technogeek_42 technogeek_42 is offline Offline
Posting Whiz in Training

Re: media player object

 
0
  #5
Jan 9th, 2008
Originally Posted by odelya View Post
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC