Programmatically detect if a publish point is running and stop it
-
Tuesday, September 20, 2011 1:30 PMMaybe you could help answer my question. We are already running WMS on a 2008 server. We want to be able to programitacally detect if a publish point is running and to be able to stop a publish point. All of this is possible with the SDK. However a new instance of WMS trys to start when we run our script. Any suggestions?
- Split by David M. Nelson Thursday, May 10, 2012 7:38 PM New thread for off-topic post
All Replies
-
Tuesday, September 20, 2011 1:47 PM
If the publishing point is set to "pull" and a client is trying to conect to the stream, the server will restart the pubpoint as soon as you stop it. Before stopping the pubpoint, set the "AllowClientsToConnect" to false. Then stop it.
When you stop the pupoint, all connected players will be dropped, but new connections or re-connections will be denied.
Please see http://msdn.microsoft.com/en-us/library/ms740368.aspx
-
Tuesday, August 21, 2012 2:32 PMOwner
I would try basing your script on the samples in the Windows SDK folder \Program Files\Microsoft SDKs\Windows\v6.1\Samples\Multimedia\WindowsMediaServices9\JScript. This will be a good starting place.- Marked As Answer by David Bristol [msft]Microsoft Employee, Moderator Tuesday, August 21, 2012 2:32 PM

