Answers for "Connect live stream after receiving a request to play by a client"https://www.wowza.com/community/questions/7795/connect-live-stream-after-receiving-a-request-to-p.html
The latest answers for the question "Connect live stream after receiving a request to play by a client"Answer by Michelle Bhttps://www.wowza.com/community/answers/40134/view.html
Hi,<br><br>You can look into the onHTTPStreamerRequest method.<br><br><pre>
public void onHTTPStreamerRequest(IHTTPStreamerSession httpSession, IHTTPStreamerRequestContext reqContext)
{
String value = reqContext.getRequest().getHeader(&#34;Header-Name&#34;);
}</pre><br><br>There are also similar methods for each of the separate protocols.<br><br><pre> public void onHTTPCupertinoStreamerRequest(HTTPStreamerSessionCupertino httpSession, HTTPStreamerCupertinoRequestContext reqContext)
{
}
public void onHTTPSanJoseStreamerRequest(HTTPStreamerSessionSanJose httpSession, HTTPStreamerSanJoseRequestContext reqContext)
{
}
public void onHTTPSmoothStreamingStreamerRequest(HTTPStreamerSessionSmoothStreamer httpSession, HTTPStreamerSmoothStreamingRequestContext reqContext)
{
}
public void onHTTPMPEGDashStreamerRequest(HTTPStreamerSessionMPEGDash httpSession, HTTPStreamerMPEGDashRequestContext reqContext)
{
}</pre>Wed, 10 Aug 2016 20:51:07 GMTMichelle BAnswer by sal jeffersonhttps://www.wowza.com/community/answers/14790/view.html
If your clients are RTMP and/or RTSP you would just need to set your stream type to &#34;rtp-live&#34;. When using the &#34;rtp-live&#34; stream type in your application&#39;s configuration file, the source stream will be published to Wowza only when the first client connects to the stream.<br><br>For HTTP streams to be active, the data packets need to be packetized. Wowza will start packetizing the HTTP stream as soon as the stream is published. <br><br>The stream is not published if there isn&#39;t at least one client requesting the stream. So basically, an HTTP client can not be the first to request the rtp-live stream. Once the stream has been published by an RTMP client, HTTP clients can connect.<br><br>I hope this answers your question.<br><br>Regards,<br><br>SalvadoreThu, 14 Jul 2016 06:58:45 GMTsal jefferson