# Streaming in Android Devices using JW player

**URL:** <https://community.wowza.com/t/streaming-in-android-devices-using-jw-player/39768>\
**Category:** Wowza Streaming Engine\
**Created:** [April 10, 2013, 3:23pm UTC](https://community.wowza.com/t/streaming-in-android-devices-using-jw-player/39768 "2013-04-10T15:23:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pradeep\_Nethagani](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@Pradeep\_Nethagani](https://community.wowza.com/u/Pradeep_Nethagani)\
**Post date:** [April 10, 2013, 3:23pm UTC](https://community.wowza.com/t/streaming-in-android-devices-using-jw-player/39768/1 "2013-04-10T15:23:51Z")

</div>

Hi

We are using Jw Player to play videos streaming from wowza

Here is the sample code which we are using for both video on demand and live streaming.

jwplayer(“player”).setup({

‘id’: ‘playerID’,

‘width’: ‘600’,

‘height’: ‘350’,

‘provider’: ‘rtmp’,

‘streamer’: ‘rtmp://[Ip address]:80/live’,

‘file’: ‘test.sdp’,

sources: [{

file: “rtmp://[Ip address]:80/live/test.sdp”

},{

file: “http://[Ip address]:80/live/test.sdp/playlist.m3u8”,

provider: ‘video’

}]

});

This works fine for streaming videos on PC and ios devices. But we are not able to stream videos through android devices. Should we change the streaming type in order to support android devices?

Can you point me to a similar code snippet to support android, if any?

Thanks

---

<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 11, 2013, 2:46pm UTC](https://community.wowza.com/t/streaming-in-android-devices-using-jw-player/39768/2 "2013-04-11T14:46:55Z")

</div>

Hi

Recent android devices do support HLS which means they should be able to play the stream through the Jw Player.

Most android devices do support rtsp though so an rtsp link to the stream for the devices that do not support HLS should work using the android on-board player.

Jason

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 12, 2013, 11:33am UTC](https://community.wowza.com/t/streaming-in-android-devices-using-jw-player/39768/3 "2013-04-12T11:33:28Z")

</div>

Make sure that model supports Flash. Is it this model? [http://wireless.amazon.com/Samsung-Galaxy-III-Android-Sprint/dp/B00894K248](http://wireless.amazon.com/Samsung-Galaxy-III-Android-Sprint/dp/B00894K248)

If it supports Flash, it might only support Flash HTTP (sanjose) streaming, which is not supported as far as I know at present with JW Player. Try sanjose streaming with the Wowza /examples/LiveVideoStreaming/FlashHTTPlayer with playback URL:

```auto
http://[wowza-address]:80/live/test.sdp/manifest.f4m

```

Make sure you add “sanjosestreamingpacketizer” to the /conf/live/Application.xml /LiveStreamPacketizers

Richard

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [April 15, 2013, 4:03pm UTC](https://community.wowza.com/t/streaming-in-android-devices-using-jw-player/39768/4 "2013-04-15T16:03:34Z")

</div>

The rtsp url on that page usually works for most Android devices.

There may be a few devices where rtsp doesn’t work. The SIII should

work though.

Longtail’s web site (JW PLayer) has some information on the pain of implementing streaming

for Android devices, mostly with reference to HLS:

[http://www.longtailvideo.com/blog/31646/the-pain-of-live-streaming-on-android/](http://www.longtailvideo.com/blog/31646/the-pain-of-live-streaming-on-android/)

The bottom of that page has some information on Workarounds for rtsp fallback.

See if that helps.

Daren

---

<div class="post-metadata">

**Author:** ![Thomas\_Gires](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@Thomas\_Gires](https://community.wowza.com/u/Thomas_Gires)\
**Post date:** [April 13, 2013, 1:16pm UTC](https://community.wowza.com/t/streaming-in-android-devices-using-jw-player/39768/5 "2013-04-13T13:16:50Z")

</div>

streaming to a web-based player in Android 4.1+ is unfortunately a huge pain…

You essentially have 3 options:

1. Provide an rtsp link and let the users use a 3rd-party player like MXPlayer

2. Let users install Flash (from an apk, as it’s no longer officially supported) and they can use jwplayer (though it’s far from ideal, on some devices I can’t go fullscreen, for example)

3. Make your own app using OSMF as the player platform, this will take RTMP or HDS (sanjose)

---

<div class="post-metadata">

**Author:** ![Pradeep\_Nethagani](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@Pradeep\_Nethagani](https://community.wowza.com/u/Pradeep_Nethagani)\
**Post date:** [April 12, 2013, 2:52am UTC](https://community.wowza.com/t/streaming-in-android-devices-using-jw-player/39768/6 "2013-04-12T02:52:15Z")

</div>

We are using samsung s3. Looks like it is not working with the above code.

---

<div class="post-metadata">

**Author:** ![Pradeep\_Nethagani](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@Pradeep\_Nethagani](https://community.wowza.com/u/Pradeep_Nethagani)\
**Post date:** [April 12, 2013, 3:06pm UTC](https://community.wowza.com/t/streaming-in-android-devices-using-jw-player/39768/7 "2013-04-12T15:06:07Z")

</div>

I think the model mentioned there is correct. The version of android in the mobile is 4.2. Is there anything that we could do to play videos in android 4.2 using jw player?

---

<div class="post-metadata">

**Author:** ![Pradeep\_Nethagani](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@Pradeep\_Nethagani](https://community.wowza.com/u/Pradeep_Nethagani)\
**Post date:** [April 15, 2013, 12:48am UTC](https://community.wowza.com/t/streaming-in-android-devices-using-jw-player/39768/8 "2013-04-15T00:48:40Z")

</div>

Thanks for your inputs…

Actually we tries the second option, we installed flash on the android device and used jwplayer !

With the following code

jwplayer(“player”).setup({

‘id’: ‘playerID’,

‘width’: ‘600’,

‘height’: ‘350’,

‘provider’: ‘rtmp’,

‘streamer’: ‘rtmp://[Ip address]:80/live’,

‘file’: ‘test.sdp’,

sources: [{

file: “rtmp://[Ip address]:80/live/test.sdp”

},{

file: “http://[Ip address]:80/live/test.sdp/manifest.f4m”,

provider: ‘video’

}]

});

It did not work. let me know if i have to make any changes to the above code. I will try the remaining options mentioned above and get back.

---

<div class="post-metadata">

**Author:** ![Pradeep\_Nethagani](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@Pradeep\_Nethagani](https://community.wowza.com/u/Pradeep_Nethagani)\
**Post date:** [April 15, 2013, 2:00pm UTC](https://community.wowza.com/t/streaming-in-android-devices-using-jw-player/39768/9 "2013-04-15T14:00:33Z")

</div>

I tried playing the rtsp stream present in the following link on android

[https://www.wowza.com/html/mobile.html](https://www.wowza.com/html/mobile.html)

It did not work. Does android support rtsp streams?
