Again, I am a beginer, and need help.
Can some walk me through the steps to do the following:
click a button, which will play a video file in WMP in fullscreen mode
(launch player, not in a form)
then when the video is done playing, I want the player to close, then the
form that had the button to also close.
I really do not have a clue, so I need very basic instruction.
Thanks to those of you that share what you know so the rest of us can learn. 3 4613
Hello,
I think it's possible to do this using the old mplayer2.exe (version 6.4)
which is in the same folder as Windows Media Player (up to version 10).
It accepts parameters, such as /close and /fullscreen.
( http://support.microsoft.com/kb/241422/en-us)
An example in VB 2005:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim a As New Process
a =
Process.Start(My.Computer.FileSystem.SpecialDirect ories.ProgramFiles + _
"\Windows Media Player\mplayer2.exe", "/play /close /fullscreen
Path-File.wmv")
Me.Close()
End Sub
End Class
The form will close after WMP has turned up. At the moment, I don't know how
I can change that.
I could not test it because I have Vista and WMP 11, so please try it and
tell us whether it works or not. Hope this helps.
"John Piper" wrote:
Again, I am a beginer, and need help.
Can some walk me through the steps to do the following:
click a button, which will play a video file in WMP in fullscreen mode
(launch player, not in a form)
then when the video is done playing, I want the player to close, then the
form that had the button to also close.
I really do not have a clue, so I need very basic instruction.
Thanks to those of you that share what you know so the rest of us can learn.
I have WMP 11, so that did not work. I think I need a way to play the
video, but do not know how (like I said I am clueless). I want it to do as
I said, however, to work on most machines, so maybe another more "global"
way so to say.
Thanks again to everyone
"P. Di Stolfo" <PD*******@discussions.microsoft.comwrote in message
news:15**********************************@microsof t.com...
Hello,
I think it's possible to do this using the old mplayer2.exe (version 6.4)
which is in the same folder as Windows Media Player (up to version 10).
It accepts parameters, such as /close and /fullscreen.
(http://support.microsoft.com/kb/241422/en-us)
An example in VB 2005:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim a As New Process
a =
Process.Start(My.Computer.FileSystem.SpecialDirect ories.ProgramFiles + _
"\Windows Media Player\mplayer2.exe", "/play /close /fullscreen
Path-File.wmv")
Me.Close()
End Sub
End Class
The form will close after WMP has turned up. At the moment, I don't know
how
I can change that.
I could not test it because I have Vista and WMP 11, so please try it and
tell us whether it works or not. Hope this helps.
"John Piper" wrote:
>Again, I am a beginer, and need help. Can some walk me through the steps to do the following: click a button, which will play a video file in WMP in fullscreen mode (launch player, not in a form) then when the video is done playing, I want the player to close, then the form that had the button to also close. I really do not have a clue, so I need very basic instruction.
Thanks to those of you that share what you know so the rest of us can learn.
Could you not create a second blank form minus title bar etc and drop the
windows media player activex control on the form. The controls of the
player are then exposed for full screen, close, media file (url) etc.
"john piper" <jo**@piper.comwrote in message
news:sW***********@tornado.tampabay.rr.com...
>I have WMP 11, so that did not work. I think I need a way to play the video, but do not know how (like I said I am clueless). I want it to do as I said, however, to work on most machines, so maybe another more "global" way so to say.
Thanks again to everyone
"P. Di Stolfo" <PD*******@discussions.microsoft.comwrote in message
news:15**********************************@microsof t.com...
>Hello,
I think it's possible to do this using the old mplayer2.exe (version 6.4) which is in the same folder as Windows Media Player (up to version 10). It accepts parameters, such as /close and /fullscreen. (http://support.microsoft.com/kb/241422/en-us)
An example in VB 2005:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim a As New Process a = Process.Start(My.Computer.FileSystem.SpecialDirec tories.ProgramFiles + _ "\Windows Media Player\mplayer2.exe", "/play /close /fullscreen Path-File.wmv") Me.Close() End Sub
End Class
The form will close after WMP has turned up. At the moment, I don't know how I can change that. I could not test it because I have Vista and WMP 11, so please try it and tell us whether it works or not. Hope this helps.
"John Piper" wrote:
>>Again, I am a beginer, and need help. Can some walk me through the steps to do the following: click a button, which will play a video file in WMP in fullscreen mode (launch player, not in a form) then when the video is done playing, I want the player to close, then the form that had the button to also close. I really do not have a clue, so I need very basic instruction.
Thanks to those of you that share what you know so the rest of us can learn.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Will |
last post by:
Hi
How do I play a video with c#, I don't need my app to play it, I just
wanna my app calling another program (say WMPlayer) and then that
program starts playing the video.
I just need to see...
|
by: jaffar |
last post by:
hi,
i am developing a windows application, in my application i have to
stor video files into database and play those video files from database ,
how to da this application, send me replay as...
|
by: mcfarlandorama |
last post by:
Hello,
How do I play a DVD from a website? I am starting with zero knowledge
of media but have HTML Experience.
I found out that Windows Media Player won't play the DVD. Do I suggest
everyone...
|
by: anil.rita |
last post by:
When the user chooses an AV file to play, based upon the type of file,
I want to use the default installed media player to play it.
I am wondering if this is a good way - any alternatives,...
|
by: rayne |
last post by:
hi pls help me on how to play a video in full screen using visual basic 6 and how can I unload the screen and load another form after the video stop from playing.
Another is how can I save a video...
|
by: Ryan Liu |
last post by:
Hi,
I want to play Audio/Video in my C# application(standlalone, not web
applicatoin). The source of multimedia may in different formats and decided
by the end user, which I have no control.
...
|
by: mratanudey83 |
last post by:
With the help of this forum members and google search i've done the following part
Imports AxShockwaveFlashObjects
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object,...
|
by: pavanip |
last post by:
Hi,
I am new to Silverlight application.I want to display video using Mediaelement tag and I used the below code to play video.
<Canvas>
<MediaElement x:Name="mPlayer"...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |