Wowza Community

How to play stream RMTP on android

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:

How to play on android, IOS???

Thanks!

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

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

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.

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:

<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:

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.

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!