# IMediaStream.isReceiveVideo() always returns true for WebRTC

**URL:** <https://community.wowza.com/t/imediastream-isreceivevideo-always-returns-true-for-webrtc/92792>\
**Category:** Wowza Streaming Engine\
**Created:** [February 4, 2021, 3:42pm UTC](https://community.wowza.com/t/imediastream-isreceivevideo-always-returns-true-for-webrtc/92792 "2021-02-04T15:42:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sorin\_Vasilescu1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/sorin_vasilescu1/32/599_2.png) [@Sorin\_Vasilescu1](https://community.wowza.com/u/Sorin_Vasilescu1)\
**Post date:** [February 4, 2021, 3:42pm UTC](https://community.wowza.com/t/imediastream-isreceivevideo-always-returns-true-for-webrtc/92792/1 "2021-02-04T15:42:24Z")

</div>

Hi,

I’m trying to monitor incoming streams with an implementation of IMediaStreamActionNotify3 and I want to find out whether the stream contains video or not.  
However, what I notice is that stream.isReceiveVideo() is always true, even though I can see in the SDP exchange that no video is present in neither the offer SDP or the server response SDP.

What am I doing wrong? Should I be using a different method for WebRTC?

Thanks,  
Sorin.

---

<div class="post-metadata">

**Author:** ![Sorin\_Vasilescu1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/sorin_vasilescu1/32/599_2.png) [@Sorin\_Vasilescu1](https://community.wowza.com/u/Sorin_Vasilescu1)\
**Post date:** [February 4, 2021, 6:07pm UTC](https://community.wowza.com/t/imediastream-isreceivevideo-always-returns-true-for-webrtc/92792/2 "2021-02-04T18:07:47Z")

</div>

So it looks like IMediaStream.getRTPStream().getVideoTrack() is the thing that works for my purpose (i.e. published streams)  
I probably misinterpreted the meaning of isReceiveVideo().  
If anyone else has some better ideas, feel free to leave a reply. 🙂
