# how to detect start and end of streaming

**URL:** <https://community.wowza.com/t/how-to-detect-start-and-end-of-streaming/41112>\
**Category:** Wowza Streaming Engine\
**Created:** [September 3, 2013, 3:10pm UTC](https://community.wowza.com/t/how-to-detect-start-and-end-of-streaming/41112 "2013-09-03T15:10:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_Smelik](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@Martin\_Smelik](https://community.wowza.com/u/Martin_Smelik)\
**Post date:** [September 3, 2013, 3:10pm UTC](https://community.wowza.com/t/how-to-detect-start-and-end-of-streaming/41112/1 "2013-09-03T15:10:18Z")

</div>

Hello,

how can i detect when stream start and end from some programing language. Has woowza API for this?

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [September 3, 2013, 8:21am UTC](https://community.wowza.com/t/how-to-detect-start-and-end-of-streaming/41112/2 "2013-09-03T08:21:26Z")

</div>

Hello, can you explain what you are trying to do?

Are you trying to monitor incoming or outgoing streams?

Salvadore

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [September 3, 2013, 8:41am UTC](https://community.wowza.com/t/how-to-detect-start-and-end-of-streaming/41112/3 "2013-09-03T08:41:05Z")

</div>

For RTMP streaming you can use [IMediaStreamActionNotify3](https://www.wowza.com/docs/how-to-use-imediastreamactionnotify3-interface-to-listen-for-rtmp-stream-events-includes-codec-info%28includes-codec-info%29)

Salvadore

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [September 3, 2013, 11:14am UTC](https://community.wowza.com/t/how-to-detect-start-and-end-of-streaming/41112/4 "2013-09-03T11:14:01Z")

</div>

The best way to do this would be writing directly to the database using JDBC connection.

This article shows how to connect through JDBC:

[How to do user authentication for Flash RTMP client using JDBC connection to MySQL database](https://www.wowza.com/docs/how-to-do-user-authentication-for-flash-rtmp-client-using-jdbc-connection-to-mysql-database)

Salvadore

---

<div class="post-metadata">

**Author:** ![Martin\_Smelik](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@Martin\_Smelik](https://community.wowza.com/u/Martin_Smelik)\
**Post date:** [September 3, 2013, 3:23pm UTC](https://community.wowza.com/t/how-to-detect-start-and-end-of-streaming/41112/5 "2013-09-03T15:23:31Z")

</div>

Hello, i am trying to gauge how long stream is running. I must save time when stream start and save when stream end or crashed.

---

<div class="post-metadata">

**Author:** ![Martin\_Smelik](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@Martin\_Smelik](https://community.wowza.com/u/Martin_Smelik)\
**Post date:** [September 3, 2013, 5:37pm UTC](https://community.wowza.com/t/how-to-detect-start-and-end-of-streaming/41112/6 "2013-09-03T17:37:05Z")

</div>

Thanks for tip. Another question is how to send notify to my php application from server.
