<div dir="ltr">I am running a Wowza Server and trying to relay the resulting RTMP stream to a http server, but I am having a bit of an issue. It appears that the Wowza Server will occasionally send:<div>NetStream.Play.Stop code when the server has no data left to send. This doesn't mean it is EOF yet, because it will continue sending and the RTMP stream will remain live. </div><div><br></div><div>In rtmpproto.c:</div><div>if (!t && !strcmp(tmpstr, "NetStream.Play.Stop")) rt->state = STATE_STOPPED;<br></div><div><br></div><div>So av_read_frame will return AVERROR_EOF and close the stream, which is not appropriate behavior. I checked to see if a flash player has similiar behavior and it does not. It accurately differentiates between the NetStream.Play.Stop and the appropriate EOF. </div><div><br></div><div>Perhaps rtmpproto.c should be looking for a different code to know it is EOF.</div><div>if (!t && !strcmp(tmpstr, "NetStream.Play.Complete")) rt->state = STATE_STOPPED;<br></div><div><br></div><div>Not sure if this is a bug or something I will have to just live with. </div><div><br></div><div>Thanks,</div><div>Cesareo</div><div><br></div></div>