# How to play stream RMTP on android

**URL:** <https://community.wowza.com/t/how-to-play-stream-rmtp-on-android/39574>\
**Category:** Wowza Streaming Engine\
**Created:** [November 28, 2012, 6:45pm UTC](https://community.wowza.com/t/how-to-play-stream-rmtp-on-android/39574 "2012-11-28T18:45:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Le\_Dzung](https://avatars.discourse-cdn.com/v4/letter/l/e47c2d/32.png) [@Le\_Dzung](https://community.wowza.com/u/Le_Dzung)\
**Post date:** [November 28, 2012, 6:45pm UTC](https://community.wowza.com/t/how-to-play-stream-rmtp-on-android/39574/1 "2012-11-28T18:45:05Z")

</div>

I play well on PC Desktop with jwplayer + rmtp of wowza, but It’s not run on Android ( I test on GalaxyNote 2, android 4), and may be not run on IOS

(My stream from VLC -\> Wowza, over udp port 10000)

My player script:

Error picture:

![](http://i1341.photobucket.com/albums/o749/LD_VN/errorAndroid.png)

How to play on android, IOS???

Thanks!

---

<div class="post-metadata">

**Author:** ![Jim\_Sustacek](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@Jim\_Sustacek](https://community.wowza.com/u/Jim_Sustacek)\
**Post date:** [November 28, 2012, 8:11am UTC](https://community.wowza.com/t/how-to-play-stream-rmtp-on-android/39574/2 "2012-11-28T08:11:50Z")

</div>

Android and iOS don’t have Flash, so they won’t play RTMP URLs. You will need to use RTSP for Android, and HTTP for iOS – fortunately Wowza can easily send both of these:

[https://www.wowza.com/docs/how-to-publish-and-play-a-live-stream-mpeg-ts-based-encoder](https://www.wowza.com/docs/how-to-publish-and-play-a-live-stream-mpeg-ts-based-encoder)

For RTMP/iOS, you can use the same JW Player embedding method with a few tweaks – see the last “HTML5 Fallback” example here:

[https://www.wowza.com/docs/how-to-use-longtail-jw-player-5-with-wowza-media-server](https://www.wowza.com/docs/how-to-use-longtail-jw-player-5-with-wowza-media-server)

For Android, you won’t be able to embed the RTSP stream – you will have to just use a hyperlink to the RTSP URL, or redirect users to it somehow.

---

<div class="post-metadata">

**Author:** ![Jim\_Sustacek](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@Jim\_Sustacek](https://community.wowza.com/u/Jim_Sustacek)\
**Post date:** [November 29, 2012, 8:23am UTC](https://community.wowza.com/t/how-to-play-stream-rmtp-on-android/39574/3 "2012-11-29T08:23:40Z")

</div>

I assume you mean you want it embedded on a web page?

Unfortunately you can’t embed mobile RTSP. However, you should be able to link to it, and Android will play it:

```auto
<a href="rtsp://[wowza-ip-address]:1935/live/mpegts.stream">Android live stream</a>

```

Or your web page could detect the user’s OS as Android and re-direct them. Something like this in PHP:

```auto
if ( strpos($_SERVER['HTTP_USER_AGENT'],'Android') || strpos($_SERVER['HTTP_USER_AGENT'],'webOS') || strpos($_SERVER['HTTP_USER_AGENT'],'BlackBerry') ) {
  header('Location: rtsp://[wowza-ip-address]:1935/live/mpegts.stream');
  die();
  exit();
}

```

Although some Android devices support RTMP/HLS, so it’s probably best to let the user decide.

---

<div class="post-metadata">

**Author:** ![Le\_Dzung](https://avatars.discourse-cdn.com/v4/letter/l/e47c2d/32.png) [@Le\_Dzung](https://community.wowza.com/u/Le_Dzung)\
**Post date:** [November 29, 2012, 12:10am UTC](https://community.wowza.com/t/how-to-play-stream-rmtp-on-android/39574/4 "2012-11-29T00:10:37Z")

</div>

Thank you!

So, how to put livestream rtsp or other to web of android ?

Android only accept rtsp client like VLC? I ve just tested vlc on android and it work well.

But i need live stream on web!
