# RTSP + Android + Wowza.v3 = Keeps Cutting Out After 90 sec

**URL:** <https://community.wowza.com/t/rtsp-android-wowza-v3-keeps-cutting-out-after-90-sec/35487>\
**Category:** Wowza Streaming Engine\
**Tags:** media-players-and-devices\
**Created:** [January 16, 2012, 5:12pm UTC](https://community.wowza.com/t/rtsp-android-wowza-v3-keeps-cutting-out-after-90-sec/35487 "2012-01-16T17:12:42Z")\
**Posts on this page:** 9\
**Page:** 2

<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:** [January 16, 2012, 6:16pm UTC](https://community.wowza.com/t/rtsp-android-wowza-v3-keeps-cutting-out-after-90-sec/35487/21 "2012-01-16T18:16:14Z")

</div>

Possibly an encoding issue?

What happens when you play the Wowza sample file?

rtsp://[wowza-address]:1935/vod/mp4:sample.mp4

---

<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:** [January 16, 2012, 7:37pm UTC](https://community.wowza.com/t/rtsp-android-wowza-v3-keeps-cutting-out-after-90-sec/35487/22 "2012-01-16T19:37:45Z")

</div>

Ok, then try some more troubleshooting to narrow down the problem:

1. Play the Wowza VOD RTSP demo in your Android RTSP player. I use the free Doga player.

rtsp://184.72.239.149/vod/mp4:BigBuckBunny\_175k.mov

If it works then it would point to a problem with your Wowza installation. If not, possibly a network issue on your end.

1. Try playing the simple flash demo in your Android browser by going to:

[https://www.wowza.com/demo#](https://www.wowza.com/demo)

Just browse to there and watch the demo right on that page. It works well for me in Android 2.2.1.

---

<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:** [January 16, 2012, 8:22pm UTC](https://community.wowza.com/t/rtsp-android-wowza-v3-keeps-cutting-out-after-90-sec/35487/23 "2012-01-16T20:22:24Z")

</div>

Yes, that must have something to do with it. What are the results of playing the streams I mentioned above?

---

<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:** [January 19, 2012, 1:03pm UTC](https://community.wowza.com/t/rtsp-android-wowza-v3-keeps-cutting-out-after-90-sec/35487/24 "2012-01-19T13:03:51Z")

</div>

Also works for me on Android 2.2.1 over my DSL internet connection.

---

<div class="post-metadata">

**Author:** ![Lisa\_Wong](https://avatars.discourse-cdn.com/v4/letter/l/34f0e0/32.png) [@Lisa\_Wong](https://community.wowza.com/u/Lisa_Wong)\
**Post date:** [April 4, 2012, 11:11am UTC](https://community.wowza.com/t/rtsp-android-wowza-v3-keeps-cutting-out-after-90-sec/35487/25 "2012-04-04T11:11:17Z")

</div>

Steven,

This problem is most likely related to UDP routing. Wowza Media Server will timeout an RTSP/RTP connection if we have not received any data from the player in the form of either RTCP packets or some sort of GET\_OPTIONS request in 90 seconds. We properly signal that we have a 60 second timeout in the RTSP exchange. There is most likely an issue with UDP routing that is blocking the RTCP (UDP packets) from flowing from the player to the Wowza Server. These packets would be sufficient to keep the session alive. Since we are not getting these packets the session is dropped after the timeout. You can test to see if this is the case by editing [install-dir]/conf/[application]/Application.xml and changing the RTP/RTSPSessionTimeout to zero (value is in milliseconds, default is 90000). Changing this value to zero will turn off this mechanism. With this off the stream should continue to play.

```auto
<RTSPSessionTimeout>0</RTSPSessionTimeout>

```

Another test is to try our sample RTSP URL to see if the problem is isolated to your server setup. Try to playback this URL:

rtsp://184.72.239.149/vod/mp4:BigBuckBunny\_175k.mov

If it plays for more than 90 seconds then the problem is with the UDP routing/firewall that the Wowa Media Server is behind. There are suggestions in the [RTSP Troubleshooting Guide](https://www.wowza.com/docs/how-to-troubleshoot-rtsp-rtp-playback) if your server is behind NAT:

If this does not resolve the issue then try turning off all firewalls between your phone and Wowza Media Server. Again, the issue is most likely related to UDP routing/firewall.

-Lisa

---

<div class="post-metadata">

**Author:** ![Lisa\_Wong](https://avatars.discourse-cdn.com/v4/letter/l/34f0e0/32.png) [@Lisa\_Wong](https://community.wowza.com/u/Lisa_Wong)\
**Post date:** [April 4, 2012, 1:50pm UTC](https://community.wowza.com/t/rtsp-android-wowza-v3-keeps-cutting-out-after-90-sec/35487/26 "2012-04-04T13:50:53Z")

</div>

Hello Steven,

No, I don’t think this will be a big problem. What this does is eliminate the timeout. If the clients have disconnected, the stream will disconnect.

-Lisa

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [January 17, 2012, 12:02pm UTC](https://community.wowza.com/t/rtsp-android-wowza-v3-keeps-cutting-out-after-90-sec/35487/27 "2012-01-17T12:02:06Z")

</div>

Hi

You could try looking here,

[https://www.wowza.com/docs/how-to-set-up-an-application-for-rtsp-rtp-streaming](https://www.wowza.com/docs/how-to-set-up-an-application-for-rtsp-rtp-streaming)

This might get you started on the troubleshooting.

There are some settings that you can play around with relating to the timeout but 90000ms is high as it is.

Have any of the suggestions that Randall has made worked??

Jason

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [January 18, 2012, 2:19pm UTC](https://community.wowza.com/t/rtsp-android-wowza-v3-keeps-cutting-out-after-90-sec/35487/28 "2012-01-18T14:19:29Z")

</div>

Hi

Ok, your firewall on Windows is open for all the necessary ports and protocols but if you are then behind a router they may be blocked from there.

Are you using a router?

Can you also describe “slightly better results”? from this,

“I have tried to change the RTSPBindAddress parameters with slightly better results”

Is the server in a data-centre or are you doing this from home?

Has the data centre got its own firewall?

Jason

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [April 4, 2012, 12:42pm UTC](https://community.wowza.com/t/rtsp-android-wowza-v3-keeps-cutting-out-after-90-sec/35487/29 "2012-04-04T12:42:53Z")

</div>

Hi

You can get the independent consultants list if you’re looking for help.

Ask by email - support@wowza.com

Jason

[Previous page](https://community.wowza.com/t/rtsp-android-wowza-v3-keeps-cutting-out-after-90-sec/35487.md?page=1)
