# IMediaStreamActionNotify3 incoming vs trancoder onPublish

**URL:** https://community.wowza.com/t/imediastreamactionnotify3-incoming-vs-trancoder-onpublish/274
**Category:** Wowza Developer Dojo
**Tags:** wowza-streaming-server-java-api
**Created:** [May 25, 2016, 6:21am UTC](https://community.wowza.com/t/imediastreamactionnotify3-incoming-vs-trancoder-onpublish/274 "2016-05-25T06:21:26Z")
**Posts on this page:** 3
**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: [May 25, 2016, 6:21am UTC](https://community.wowza.com/t/imediastreamactionnotify3-incoming-vs-trancoder-onpublish/274/1 "2016-05-25T06:21:26Z")

</div>

I am using the onPublish to trigger events when a RTMP feed comes in. The issue is that when the transcoder fires up, all renditions also are technically published. How can I differentiate between a truly incoming rtmp stream vs a transcoded or other internal publish. The publish part is either here nor there for me, I just want to know when an encoder starts and disconnects.

Thanks!

---

<div class="post-metadata">

### Author: ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)
#### Post date: [June 21, 2016, 11:57am UTC](https://community.wowza.com/t/imediastreamactionnotify3-incoming-vs-trancoder-onpublish/274/2 "2016-06-21T11:57:30Z")

</div>

Hi Invintus,

You can use the isTranscodeResult() method for the IMediaStream object to determine if a given published stream is a transcoded stream or an original stream.

Michelle

---

<div class="post-metadata">

### Author: ![scott\_freeman](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@scott\_freeman](https://community.wowza.com/u/scott_freeman)
#### Post date: [June 21, 2016, 9:07pm UTC](https://community.wowza.com/t/imediastreamactionnotify3-incoming-vs-trancoder-onpublish/274/3 "2016-06-21T21:07:56Z")

</div>

Thanks Michelle

~scott~
