PC Review


Reply
Thread Tools Rate Thread

How to determine and jump next item when media finished playing

 
 
kimiraikkonen
Guest
Posts: n/a
 
      6th Nov 2007
Hi
I used Windows Media Player control to programme a simple player,
The problem is when the song finishes playing it must jump to next
item automatically. (listbox's items are used as media's path(url) ) .
I couldn't find an event for WMP control (AxWindowsMediaPlaeyr1) to do
that. A simple button does that, but i want it to be done
automatically not by pressing button.

Here is my code:

Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button12.Click
Try
If Me.AxWindowsMediaPlayer1.playState =
WMPLib.WMPPlayState.wmppsStopped Then
Me.ListBox1.SelectedIndex = Me.ListBox1.SelectedIndex +
1
End If
Label2.Text = ListBox1.SelectedItem
Me.AxWindowsMediaPlayer1.URL = Label2.Text

Catch ex As Exception
MsgBox("Error")
End Try
End Sub

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to tell when a sound has finished playing ??? Jack Microsoft C# .NET 1 5th Jun 2008 07:41 AM
How to Determine PrintJob is Finished with VBA SFatz Microsoft Excel Programming 2 28th Jan 2005 01:05 PM
avi clips cut out before finished playing Judith Donoghue Microsoft Powerpoint 2 6th Oct 2004 01:54 PM
determine when zipping is finished Benjamin Bittner Microsoft VB .NET 0 1st Sep 2004 03:29 PM
Addin to determine when a Windows Media Player object has finished. Mike M. Microsoft Powerpoint 7 14th Apr 2004 05:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:44 PM.