473,407 Members | 2,320 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

VB 2005 WMP Not playing files

swatmajor1
HI there,

In the media player I have been making, I have created a auto load playlist, which then loades the next media file into the media player, but it wont play automatically, it just says Media opening.... I have tried using openstateChange, playstateChange, and other codes.

Here are the subs which work to load and play media files, keep in mind, if you select a file manually, then it DOES PLAY, when through the playstatechange Sub, it doesn't

Expand|Select|Wrap|Line Numbers
  1.  
  2.  
  3.     Private Sub playlist_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles playlist.SelectedIndexChanged
  4.         If Me.Visible = True Then Player.URL = playlist.SelectedItem
  5.         ReturnValue = System.IO.Path.GetExtension(playlist.SelectedItem)
  6.         Player.Ctlcontrols.play()
  7.         Load_Music()
  8.         Load_Video()
  9.     End Sub
  10.  
  11.  Private Sub player_PlayStateChange(ByVal sender As Object, ByVal e As AxWMPLib._WMPOCXEvents_PlayStateChangeEvent) Handles Player.PlayStateChange
  12.         If Player.playState = WMPLib.WMPPlayState.wmppsMediaEnded Then playlist.SelectedIndex = playlist.SelectedIndex + 1
  13.         PlayFile()
  14.     End Sub
  15.  
  16.  
As always, any help is appreciated.

Signing off,

Swatmajor1
Jan 12 '07 #1
0 962

Sign in to post your reply or Sign up for a free account.

Similar topics

48
by: ik | last post by:
ERROR after uninstalling SQL Server 2005 Express I get this message, SQLDMO has not been registered. Please re-run your setupand contact your system administrator. GREAT!!! ReInstalled SQL...
13
by: Andy | last post by:
Hi As I try to learn VB programing I've been playing around with sourcecode from projects hosted on sourceforge. If I open this code in VB 2005 (it is originally developed in VB 2003), it will...
4
by: Programatix | last post by:
Hi, Normally, I would use Namespace for all the window forms I created. With VS 2005, the code generated by the designer is hidden using partial keyword. The question is, is there an efficient...
2
by: Rob | last post by:
Ok, I am a beginner when it comes to ASP.NET and C#. I have been "playing" with Visual Studio 2005 for about 1 week now and I cannot figure out how to create a .aspx or .ascx page in VS 2005. I...
1
by: majestik | last post by:
Question, can I see an event in Javascript that tells me a video starts playing using the <embed src="file.wmv>. I stream the video, but there is a wait time and wanted to pop up a message telling...
17
by: boa | last post by:
I'm currently planning disk layouts and use for a new version of our database. The current version has all data and indexes in the default filegroup, placed on one big raid-5 array(6 drives) along...
3
by: jason | last post by:
I've been working with C# for over a year now without touching vb.net code. I had a few light years of vb.net before that. No real vb6 or windows form experience. Suddenly, I have an assignment...
23
by: Rob | last post by:
I have been using VS 2003.... just installed VS 2005.... In 2003, if you want to create a Web project, you open Visual Basic Projects | ASP.NET Web Application.... How do you begin an ASP...
4
by: Vivienne | last post by:
I am using vs 2005 on windows xp. I created a project, named ssps.And when debugging, I set project property->debugging->command argument the way I wanted,like this: -b f: \files f:\files. Then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.