IIS 7 and Above
Publishing Point auto Restart
Last post Jun 28, 2013 09:31 AM by gahlouta
Jun 21, 2010 03:54 PM|madner|LINK
I'm experiencing an issue with IIS 7 and Live Smooth Streaming: I've a Publishing point working correctly if the encoder streams to the server but when the encoder is manually stopped, the Publishing Point goes to the "stopped" status and I need to restart
it manually: do you know if this can be done automatically without writing any code?
Thank you so much.
Live Smooth Streaming
IIS Media Services
IIS 7.0 media
iis 7.0 media services
IIS Smooth Streaming
Jun 21, 2010 11:01 PM|Jimin_Gao|LINK
You may add the following line to your publishing point
<meta name="restartOnEncoderReconnect" content="true" />
The publishing point then will go from Stopped to Started when new push streams come in. However, if you were using Event IDs you need to use a new one to restart the publishing point.
Jun 23, 2010 08:54 AM|madner|LINK
Great, it seems to work! Thank you so much!
Jimin, can I ask you how you've found this info (maybe I could need to set other properties...)? Is there any official doc?
Thank you again.
Jun 23, 2010 11:23 PM|Jimin_Gao|LINK
This is part of the "hidden" features that I believe are not in any public documents. I know it because I am part of the Live Smooth Streaming team here at Microsoft. All the publishing point properties that we think users will frequently need are accessible
through Live Smooth Streaming UI. The rest are "hidden" and are not well documented. At this stage for IIS Media Services 4.0 development various properties are still being added, and we may see a more complete document once the features start to stablize.
Jul 13, 2010 05:49 PM|comporder1|LINK
I have added the meta tag, however it continues to default to stopped after EE4 is stopped. When I try to reconnect EE4 to the publishing point it says "Publishing point in use. Reset it on the server." It is a real pain to have to manually reset it EVERY
I think this feature is obviously needed.
Jul 14, 2010 01:26 AM|elazary|LINK
I have the same problem with
IIS Media Services 4 and expression encoder 4. Is there a way to create a webpage/iis module to help restart this. I have knolwedge in c# and iHttpModules, so just a code snippet will help. It will also be nice if I would not need to set the permistion
to administrator in IIS inorder to do this.
Jul 14, 2010 01:50 AM|Jimin_Gao|LINK
As mentioned in previous posts, IIS Live Smooth Streaming does allow a publishing point to be restarted. However EE4 will not push to a publishing point that is not in Idle state (by looking whether a live manifest is currently available from the publishing
We will provide the feeback to EE4 team. In the mean time please refer to this thread
http://forums.iis.net/t/1169401.aspx and this page
http://blogs.southworks.net/ejadib/2009/04/16/live-smooth-streaming-how-to-start-stop-shutdown-a-publishing-point-programmatically/ for how to programmatically shutdown a Stopped publishing point.
Jul 15, 2010 05:34 PM|comporder1|LINK
@Jimin_Gao - Are you saying that there is a flaw in EE4 that even when adding the meta tag the publishing point will not auto start? Also, thank you for providing the links, but I could not make since of the information. I'm afraid that I am not knowlegeable
enough to be able to apply the code samples to help me. I don't suppose you could just provide code to restart a publishing point.
Jul 16, 2010 02:26 AM|Jimin_Gao|LINK
I am not sure it's a "flaw", but EE4 certainly is not taking advantage of this restart feature of Live Smooth Streaming for the consideration to prevent users from inadvertently shutting down a publishing point. If you look at the code example in the second
link, the function ExecuteRscaFunction is all you need. Just call it and pass in "ShutdownPublishingPoint" for the functionName parameter.
Jul 16, 2010 02:54 AM|Jimin_Gao|LINK
Actually this code example is more up-to-date and easier to understand
Jul 19, 2010 09:26 PM|comporder1|LINK
I am afraid I must ask.... How do I implement this code? Is it .asp? .php? The last link says I must reference two .dll files. How do I do that?
What I need to be able to do is remotely start/restart a publishing point.
Thank you to anyone who can help me.
Jul 23, 2010 05:54 PM|Nicolas.Drouin|LINK
Thanks for this info. It solves a problem that I've had with restarting the streams I publish using the Smooth Streaming Format SDK.
By simply adding the option to the .isml file and we can now start and stop streams without getting connection errors from the server.
By the way, there is no HTTP responce when re-initiating a stream when the option is NOT set, it just times out. In my implementation, it fails in WinHttpReceiveResponse with ERROR_WINHTTP_CONNECTION_ERROR. This could be a bit more elegant on the server-side
(file not found, whatever). In particular, at the moment, a wire-shark trace of tcp traffic shows a RST bit on the ACK frame from the server on the initial POST opperation -- it will be much easier for everyone to handle a 400-level error when restart is
not enabled, or the pub-point cannot handle a new connection.
Apr 07, 2011 04:13 AM|pcpal01|LINK
How and where to you place this statement?
Jun 28, 2011 01:05 PM|Nicolas.Drouin|LINK
Just to close off the thread:
Edit the .isml file for your publishing point (in notepad) and add the following:
along with the other tags generated via the IIS Media GUI.
Jul 01, 2011 03:11 AM|ejadib|LINK
Sam wrote an excellent post describing these hidden and advanced properties:
Hope this helps,
Live Smooth Streaming
Feb 28, 2012 05:24 PM|ANDDYYYY|LINK
The practice of having "hidden" features combined with removal of the command line interface is making it really hard (for me, maybe others too) to implement unattended encoding and publishing systems.
Please improve the documentation of the SDK, especially the integration of Expression Encoder and IIS Media Services 4.1, help us out!
Jun 28, 2013 09:31 AM|gahlouta|LINK
Please tell me where to addd the following line to the publishing point