|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
windows media player problemi'd like my application to play video "friday.wmv" just after "monday.wmv". i don't want to use a playlist. the wmp is deaf just after playing the first video. what am i doing wrong? windows xp, wmp 9 the code: Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load player.URL = "c:\temp\monday.wmv" player.Ctlcontrols.play() End Sub Private Sub player_PlayStateChange(ByVal sender As Object, ByVal e As AxWMPLib._WMPOCXEvents_PlayStateChangeEvent) Handles player.PlayStateChange If e.newState = 1 Then player.URL = "c:\temp\friday.wmv" player.Ctlcontrols.play() End If End Sub In the PlayStateChange function, we probably need to check the state
where playstate = mediaended or stopped and then execute your code in there. I think that should work. *** Sent via Developersdex http://www.developersdex.com ***
Reading Output from Shell Command
Help with some code? for loop ending condition Writing TIF to database Problems with the excel find function in vb.net open binary file and search hex string Dataview Find method, case insensitive? Remote debugging: Unable to map the debug start page URL to a machine name XMLReader and VB.Net Moving a windows form from a windows app to a class library. |
|||||||||||||||||||||||