# Modify JWPlayer embed to support Android somehow

**URL:** <https://community.wowza.com/t/modify-jwplayer-embed-to-support-android-somehow/37477>\
**Category:** Wowza Streaming Engine\
**Created:** [July 31, 2013, 11:57am UTC](https://community.wowza.com/t/modify-jwplayer-embed-to-support-android-somehow/37477 "2013-07-31T11:57:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Pearce](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@Chris\_Pearce](https://community.wowza.com/u/Chris_Pearce)\
**Post date:** [July 31, 2013, 11:57am UTC](https://community.wowza.com/t/modify-jwplayer-embed-to-support-android-somehow/37477/1 "2013-07-31T11:57:32Z")

</div>

OK, so I have read what a nightmare Android is. I’m also not a HTML hacker. But, I have got the following code working to support live streaming to IOS and Flash using JWPlayer 6. What I need now is a way to modify this block so that a stream shows up on Android. I know it won’t be adaptive bitrate. But, I understand RTSP is the most likely way to get a stream to Android. So let’s say I pick some arbitrary one of the underlying streams to feed to Android. Let’s say it’s this rtsp stream:

rtsp://example.com:1935/live/mp4:mystream\_360p

How do I add that into the HTML code below to get it to show up on Android? I don’t think this is a JWPlayer question, since they don’t support RTSP streams. So, I’m presuming there has to be some way to get Android to show the stream independently of JWPlayer. Can I do this just in the HTML, or do I need some other embeddable player? If so, can you point me in that direction too. If you can suggest a solution, do you also have a sense of which Android OS versions it might work for? I’m really tearing my hair out.

```auto
<!doctype html>
<head>
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
</head>
<body>
<div id='my-video'></div>
    <script type='text/javascript'>
        jwplayer('my-video').setup({
            playlist: [{
                sources : [
                { file: 'http://example.com:1935/live/ngrp:mystream_all/playlist.m3u8' },
                { file: 'http://example.com:1935/live/ngrp:mystream_all/jwplayer.smil' }
                ],
                title: "My Excellent Stream"
            }],
            width: '640',
            height: '360'
        });
    </script>
</body>

```

---

<div class="post-metadata">

**Author:** ![Roger\_Littin1](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@Roger\_Littin1](https://community.wowza.com/u/Roger_Littin1)\
**Post date:** [August 1, 2013, 2:25pm UTC](https://community.wowza.com/t/modify-jwplayer-embed-to-support-android-somehow/37477/2 "2013-08-01T14:25:33Z")

</div>

Hi,

The following should work.

```auto
<!doctype html>
<head>
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
</head>
<body>
<div id='my-video'><a href='rtsp://example.com:1935/live/mp4:mystream_360p'>My Excellent Stream</a></div>
    <script type='text/javascript'>
        jwplayer('my-video').setup({
            playlist: [{
                sources : [
                { file: 'http://example.com:1935/live/ngrp:mystream_all/playlist.m3u8' },
                { file: 'http://example.com:1935/live/ngrp:mystream_all/jwplayer.smil' }
                ],
                title: "My Excellent Stream"
            }],
            width: '640',
            height: '360',
            fallback: false
        });
    </script>
</body>

```

The fallback: false part tells the javascript not to replace the contents of the div tag if it cannot render a player. This way your link is displayed instead.

Roger.
