Re: Windows Media Player

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: JohnK (johnkeystone_at_noreply.net)
Date: 05/07/04


Date: Fri, 7 May 2004 17:07:36 +0200

Maybe don't use the mediaplayer?
Another way of playing mp3 is by using the multimediacontrol:
note: MP3PlayingNow is a boolean switch and MMC is the multimediacontrol,
the rest of the names is selfexplaining:
..
..
            If MP3isPlayingNow = True Then
                MMC.Notify = False
                MMC.Wait = True
                MMC.Command = "Stop"
                MMC.Command = "Close"
                MP3isPlayingNow = False
            End If
            MP3File = MP3FileSelected
            MMC.Notify = False
            MMC.Wait = True
            MMC.Shareable = False
            MMC.FileName = MP3File
            MP3isPlayingNow = True
            MMC.Command = "Open"
            MMC.Command = "Play"
..
..
etcetera

John

"Hot Rats" <dewijunk@NOSPAMbtinternet.com> schreef in bericht
news:c7crn1$h99$1@titan.btinternet.com...
> Hi, I have a small VB6 app which I use to play mp3s from Media Player. As
> an mp3 finishes it calls the end of stream routine and selects the next
> file.
>
> However I can't seem to get end of stream working with MP9. The syntax I
am
> using to play a file is
> mediaplayer1.url = "test.mp3"
>
> It plays the file ok, but won't call the end of stream routine. It was
> working fine with earlier versions of media player although the code then
> was
> mediaplayer.filename="test.mp3"
> mediaplayer.play
>
> Can anyone shed any light on this? Am I using the wrong code to play a
> file?
>
> Thanks
>
>
>
> --
> ---- Remove only "NOSPAM" to reply directly ---
>
>

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.677 / Virus Database: 439 - Release Date: 4-5-2004


Relevant Pages

  • Re: Windows Media Player
    ... MP3PlayingNow is a boolean switch and MMC is the multimediacontrol, ... >> using to play a file is ... Hi John, thanks for that, I'll give that a go. ...
    (microsoft.public.vb.controls)
  • [SLE] System Freeze
    ... annoying problem that seems to be getting worse. ... Now it is happening if I play mpegs as well. ... would still freeze when playing mp3 or streaming music. ...
    (SuSE)
  • [SLE] System freeze
    ... annoying problem that seems to be getting worse. ... Now it is happening if I play mpegs as well. ... would still freeze when playing mp3 or streaming music. ...
    (SuSE)
  • Re: How to output to 2 speakers for one channel (left or right) in MP3
    ... or right) when playing MP3 in VB 2005.net? ... I want to use this application to play some MP3 files ... that have two channels, however, sometime, ... then output to both of my stereo speakers.. ...
    (microsoft.public.windowsmedia.sdk)
  • Re: MP3 via WLAN
    ... could use this technique. ... has anyone experience with playing MP3 via WLan? ... I want to have the songs on a server and play it on the PPC. ...
    (microsoft.public.pocketpc)