🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.basic.visual
Article #238

Re: WindowsMediaPlayer

#238
From: peter
Date: Wed, 18 Jun 2003 08:03
45 lines
2529 bytes
"Frank Adam" <fajp@xxxxoptushome.com.au> wrote in message
news:3eef5503.5091644@news-vip.optusnet.com.au...
> On Tue, 17 Jun 2003 17:06:40 +0200, "peter" <iwi@iwi.myweb.nl> wrote:
>
> >Hello,
> >
> >I built in the WindowsMediaPlayer in a form, but I can't get it working.
> >Does anayone have some sample-code for me?
> >
> May be a silly question, but what exactly doesn't work ?
>
> Private Sub PlayFile(s as string) 's = your path to a media file
> WMP.FileName = s
> WMP.Play
> End Sub
>
> If that doesn't work, then you may be setting a file that is not
> supported by the media player.
>
> -- 
>
> Regards, Frank

What I did is:

1. create a form

2. put the Windows Media player on it

3. doubleclcked the "PLAY"-button to add the code I need to play the file
"c:\temp\heaven.mp3"

When I typede the code: "WindowsMediaPlayer1." I got a listbox with lots of
items but not the ones you mentioned (Filename, Play).

double-clicking the play-button gave me the following:



Private Sub WindowsMediaPlayer1_OpenStateChange(ByVal NewState As Long)

' WHAT CODE HERE?

End Sub
Technical Details
Message-ID: <bcp6d1$2sq$1@news3.tilbu1.nb.home.nl>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.stueberl.de!proxad.net!freenix!skynet.be!skynet.be!213.51.129.3.MISMATCH!newshub1.home.nl!home.nl!not-for-mail
References: <bcnaq9$52q$1@news2.tilbu1.nb.home.nl> <3eef5503.5091644@news-vip.optusnet.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f51ba,c319209086d6e623
X-Google-Attributes: gidf51ba,public
X-Google-Thread: 110e3b,c319209086d6e623
X-Google-Attributes: gid110e3b,public
X-Google-Thread: f645d,c319209086d6e623
X-Google-Attributes: gidf645d,public
X-Google-ArrivalTime: 2003-06-18 01:03:46 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.stueberl.de!proxad.net!freenix!skynet.be!skynet.be!213.51.129.3.MISMATCH!newshub1.home.nl!home.nl!not-for-mail
From: "peter" <iwi@iwi.myweb.nl>
Newsgroups: comp.lang.basic.visual,comp.lang.basic.visual.misc,dk.edb.programmering.basic.visual-basic
Subject: Re: WindowsMediaPlayer
Date: Wed, 18 Jun 2003 10:03:33 +0200
Organization: @Home Benelux
Lines: 47
Message-ID: <bcp6d1$2sq$1@news3.tilbu1.nb.home.nl>
References: <bcnaq9$52q$1@news2.tilbu1.nb.home.nl> <3eef5503.5091644@news-vip.optusnet.com.au>
NNTP-Posting-Host: cc91542-a.hnglo1.ov.home.nl
X-Trace: news3.tilbu1.nb.home.nl 1055923425 2970 212.120.101.44 (18 Jun 2003 08:03:45 GMT)
X-Complaints-To: abuse@home.nl
NNTP-Posting-Date: Wed, 18 Jun 2003 08:03:45 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165