Visual C# Developer Center >
Using Forums Forums
>
Off-Topic Posts (Do Not Post Here)
>
media player component problem
media player component problem
- hi all.....
i want to stop media player of working after some period of time ..
how can i do that in C#????
after the user write on panel (this is for my project) the media will continue ..- Moved byHarry ZhuMSFTThursday, November 12, 2009 6:39 AM (From:Visual C# Language)
- Edited byMike Walsh MVPMVP, ModeratorFriday, November 13, 2009 1:52 PM !!!!! removed - shouldn't be in a Title
All Replies
- is there is any one can help me?????
- You are a bit short on details.
Your question is not clear.
"I want to stop media player after some period of time. "
It sounds like all you need to do is call the Stop method on the media player instance.
If so, it would help to know how it was started in the first place.
But, it also sounds like you are asking you to stop the external Media Player application.
Which is it?
Rudy =8^D
Mark the best replies as answers. "Fooling computers since 1971." ayat, assuming that your work is completely in "Windows Media Player", the code for stop would be:
axWindowsMediaPlayer1.Ctlcontrols.stop();
refer: http://msdn.microsoft.com/en-us/library/dd562851(VS.85).aspx
Balaji Baskar [Please mark the post as answer if it answers your question]- Proposed As Answer byRudedog2 Thursday, November 05, 2009 4:22 PM
- i am talking about stop the Windows media player component
...
"axWindowsMediaPlayer1.Ctlcontrols.stop();"
is helpful..
i will ex plane..
i have a movie and iwant to do some action on it when some word is spoken
00:00:50,397 --> 00:00:54,244
ice ages
the above is short cut from srt file of the avi file
i want to stop the windows media player at 00:00:50
my movie is 25 mints
i have an idea of using a timer .. but does it work ?????
and if it work ..how can i do that???
i hope you understand me :)
- Use a Timer and check axWindowsMediaPlayer1.CtlControls.currentPosition.
- Hi,
For the question relating to windows Media Player control is beyond c# forum, you might want to post to directshow forum:
http://social.msdn.microsoft.com/Forums/en/windowsdirectshowdevelopment/threads
or please post your question to one of the newsgroups "Discussions in microsoft.public.windowsmedia.player"located here: http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?dg=microsoft.public.windowsmedia.player&mid=6efd8ac4-b8da-45a9-8098-820af5037900
Harry
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.


