# RTMP stream alive check

**URL:** https://community.wowza.com/t/rtmp-stream-alive-check/580
**Category:** Wowza Streaming Engine
**Created:** [January 29, 2011, 1:32pm UTC](https://community.wowza.com/t/rtmp-stream-alive-check/580 "2011-01-29T13:32:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)
#### Post date: [January 29, 2011, 1:32pm UTC](https://community.wowza.com/t/rtmp-stream-alive-check/580/1 "2011-01-29T13:32:35Z")

</div>

Is there a way to check if live stream is alive aside manual pressing play on the web player?

What I need is a way to check if stream is alive and if not be able to run certain actions, like .bat script or such.

Thanks

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [January 29, 2011, 2:57pm UTC](https://community.wowza.com/t/rtmp-stream-alive-check/580/2 "2011-01-29T14:57:32Z")

</div>

Take a look at connectioncounts HTTProvider:

[https://www.wowza.com/docs/how-to-monitor-server-connections-load-and-application-statistics](https://www.wowza.com/docs/how-to-monitor-server-connections-load-and-application-statistics)

Richard

---

<div class="post-metadata">

### Author: ![Janko\_Matko](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@Janko\_Matko](https://community.wowza.com/u/Janko_Matko)
#### Post date: [January 29, 2011, 4:31pm UTC](https://community.wowza.com/t/rtmp-stream-alive-check/580/3 "2011-01-29T16:31:42Z")

</div>

Thanks for the info, but I dont really understant how this can help me?

---

<div class="post-metadata">

### Author: ![Andrew\_Kennedy](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Andrew\_Kennedy](https://community.wowza.com/u/Andrew_Kennedy)
#### Post date: [January 29, 2011, 8:18am UTC](https://community.wowza.com/t/rtmp-stream-alive-check/580/4 "2011-01-29T08:18:33Z")

</div>

The counter will tell you if a stream is up and running, if it is there then you can assume people are connected.

To truely tell if a stream is running you would need to pull packets out of the stream, check their timestamps to check that it is increasing, thus new data is being made available to the stream.

Not too difficult, but will take time to put together.

Shamrock

---

<div class="post-metadata">

### Author: ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)
#### Post date: [August 12, 2011, 2:38am UTC](https://community.wowza.com/t/rtmp-stream-alive-check/580/5 "2011-08-12T02:38:42Z")

</div>

In ActionScript you can also poll [stream.time](http://help.adobe.com/en_US/FlashMediaServer/3.5_SS_ASD/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7e42.html#WSF74EED77-5C4C-423d-B879-7C02DF8FEC5F) and check that it is increasing.
