I set up WindowsMediaPlayer9 to play movies but I have a strange problem as follows:
If I play the same MPG4 file and over it plays nice and smoothly in any size window I like in my application as long as I keep the original MP4 file loaded and only use stop, pause or play.
However if I close the player (but not the application) and load a new AVI file it plays OK THEN all future files play jerky as though they are about 5 frames per second.
The only way I can play smoothly again is to close the exe app.
In the design environment the same thing happens and I have to close VB6 and reopen it (not just stop the application)
The avail memory gets smaller the more files I try out so it is though the player is remembering the 2 or more files behind VB?? I cant see how to purge files in run time or is something else needed.
Any ideas?
By the way I found out you can have a small box and hide all the WM controls by entering 'none' in the uiMode property of the WMPlayer. The DLL to reference in components is WMP.DLL (not an OCX)
Ted
If I play the same MPG4 file and over it plays nice and smoothly in any size window I like in my application as long as I keep the original MP4 file loaded and only use stop, pause or play.
However if I close the player (but not the application) and load a new AVI file it plays OK THEN all future files play jerky as though they are about 5 frames per second.
The only way I can play smoothly again is to close the exe app.
In the design environment the same thing happens and I have to close VB6 and reopen it (not just stop the application)
The avail memory gets smaller the more files I try out so it is though the player is remembering the 2 or more files behind VB?? I cant see how to purge files in run time or is something else needed.
Any ideas?
By the way I found out you can have a small box and hide all the WM controls by entering 'none' in the uiMode property of the WMPlayer. The DLL to reference in components is WMP.DLL (not an OCX)
Ted