borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Loading a DIB into a picturebox)Next Topic (Image Zoom problem) New Topic New Poll Post Reply
AndreaVB Forum : Multimedia : Play Sequential Files WMP10
Poster Message
seemick
Level: Trainee

Registered: 11-12-2004
Posts: 2

icon Play Sequential Files WMP10

I am trying to play one file after another with WMP10.

For simplicity I have hard coded the files to play. One on load and the other when the event wmppsMediaEnded is fired.

The problem is that the second file won't play.

Howsever, if I add a message box (See below) the second file plays until I click ok.

I have search everywhere for the answer to this problem.

It seems so simple.

Any assistance would be appreciated.


Private Sub Form_Load()

    WM1.URL = "E:\Music\Australian Crawl\Crawl File\02 indisposed.mp3"

End Sub

Private Sub WM1_PlayStateChange(ByVal NewState As Long)
    
    If WM1.playState = wmppsMediaEnded Then
    
        WM1.URL = "E:\Music\Videos\HardAct.mpg"
        
        WM1.Controls.play
        
        'MsgBox WM1.playState
                
    End If
    
End Sub

11-12-2004 at 06:35 AM
View Profile Send Email to User Show All Posts | Quote Reply
seemick
Level: Trainee

Registered: 11-12-2004
Posts: 2
icon Re: Play Sequential Files WMP10

Surely someone out there has overcome this problem.

19-12-2004 at 01:23 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Multimedia : Play Sequential Files WMP10
Previous Topic (Loading a DIB into a picturebox)Next Topic (Image Zoom problem) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder