# JW player 5.3 and up new style of embed how too?

**URL:** <https://community.wowza.com/t/jw-player-5-3-and-up-new-style-of-embed-how-too/36408>\
**Category:** Wowza Streaming Engine\
**Tags:** media-players-and-devices\
**Created:** [April 14, 2011, 5:39pm UTC](https://community.wowza.com/t/jw-player-5-3-and-up-new-style-of-embed-how-too/36408 "2011-04-14T17:39:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_G](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@David\_G](https://community.wowza.com/u/David_G)\
**Post date:** [April 14, 2011, 5:39pm UTC](https://community.wowza.com/t/jw-player-5-3-and-up-new-style-of-embed-how-too/36408/1 "2011-04-14T17:39:08Z")

</div>

HI Guys, I am new to Wowza.

We are using JW player 5.5 so to stream our current videos, but want to connect to a live stream on Wowza.

As of 5.3 JW changed the was they embed the video in the page, so the page can take advantage of the JS file.

I have seen several examples of the old embed style on the site, but nothing regarding the new style of embed.

```auto
<div id='mediaplayer'></div>
<script type="text/javascript">
  jwplayer('mediaplayer').setup({
    'id': 'playerID',
    'width': '480',
    'height': '270',
    'provider': 'rtmp',
    'file': 'http://content.bitsontherun.com/jwp/OE8Enyva.xml',
    'image': 'http://thumbs.bitsontherun.com/a95zAVN1.jpg',
    'modes': [
        {type: 'flash', src: 'http://player.longtailvideo.com/player.swf'},
        {
          type: 'html5',
          config: {
           'file': 'http://content.bitsontherun.com/videos/a95zAVN1-600331.mp4',
           'provider': 'video'
          }
        },
        {
          type: 'download',
          config: {
           'file': 'http://content.bitsontherun.com/videos/a95zAVN1-600331.mp4',
           'provider': 'video'
          }
        }
    ]
  });
</script>

```

Has anyone gotten this style to work, and can you post code / ideas please?

Regards

-D

---

<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 15, 2011, 2:05pm UTC](https://community.wowza.com/t/jw-player-5-3-and-up-new-style-of-embed-how-too/36408/2 "2011-04-15T14:05:39Z")

</div>

This is purely JW player question, better asked on their forum.

Richard

---

<div class="post-metadata">

**Author:** ![David\_G](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@David\_G](https://community.wowza.com/u/David_G)\
**Post date:** [April 22, 2011, 2:52pm UTC](https://community.wowza.com/t/jw-player-5-3-and-up-new-style-of-embed-how-too/36408/3 "2011-04-22T14:52:15Z")

</div>

Well just so everyone can have this, here it is and working 🙂 This seems to work with anything that has flash and falls back to html5 to play on Idevices.

* * *

Hope you enjoy…
