# Help with html code to play all devices via playlists jw player 6

**URL:** <https://community.wowza.com/t/help-with-html-code-to-play-all-devices-via-playlists-jw-player-6/39552>\
**Category:** Wowza Streaming Engine\
**Tags:** media-players-and-devices\
**Created:** [February 23, 2014, 6:07pm UTC](https://community.wowza.com/t/help-with-html-code-to-play-all-devices-via-playlists-jw-player-6/39552 "2014-02-23T18:07:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denis\_Santos](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@Denis\_Santos](https://community.wowza.com/u/Denis_Santos)\
**Post date:** [February 23, 2014, 6:07pm UTC](https://community.wowza.com/t/help-with-html-code-to-play-all-devices-via-playlists-jw-player-6/39552/1 "2014-02-23T18:07:18Z")

</div>

Hello my friends,

I need a help with an issue that seems simple, but I’m having trouble to achieve results,

What exactly is: I’m running with jwplayer with HLS via wowza, and would like my live and vod streams playing in all platforms,and not’m getting these results. I really need an example, code, tutorial, link, whatever so I can:

1 - A player that runs HLS on PC, Mac and the iPhone and iPad, which has fallback in android via rtsp and mp4 in HTML5 (to run in windows phone), subtitles and marks.

2 - A playslist, no matter the format, but each playlist item has these characteristics of HLS and fallbacks per item.

Already tried everything I could do fallback to RTSP but not in the playlist item, HLS on pc and mac ok, but the iphone is not going to HLS, please help me, I’m really trying this time and know that it is possible

Thank you for your attention.

---

<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:** [February 24, 2014, 9:35am UTC](https://community.wowza.com/t/help-with-html-code-to-play-all-devices-via-playlists-jw-player-6/39552/2 "2014-02-24T09:35:54Z")

</div>

Hi,

Please see the first example on [How to use LongTail JW Player 6 with Wowza Media Server](https://www.wowza.com/docs/how-to-use-jw-player-with-wowza-streaming-engine)

It demonstrates how to set rtsp fallback by setting the rtsp url as a regular link in the div tag that JW player would normally replace with the player. In the JW Player configuration, you set **fallback: false** so that your link will be displayed instead of a default image.

It is not possible to have a playlist with rtsp. I guess you could put separate rtsp links for each item. Because it is regular html, you can format it however you like.

Roger.

---

<div class="post-metadata">

**Author:** ![Denis\_Santos](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@Denis\_Santos](https://community.wowza.com/u/Denis_Santos)\
**Post date:** [February 23, 2014, 7:30pm UTC](https://community.wowza.com/t/help-with-html-code-to-play-all-devices-via-playlists-jw-player-6/39552/3 "2014-02-23T19:30:32Z")

</div>

> Hi,
> 
> Please see the first example on [How to use LongTail JW Player 6 with Wowza Media Server](https://www.wowza.com/docs/how-to-use-jw-player-with-wowza-streaming-engine)
> 
> It demonstrates how to set rtsp fallback by setting the rtsp url as a regular link in the div tag that JW player would normally replace with the player. In the JW Player configuration, you set **fallback: false** so that your link will be displayed instead of a default image.
> 
> It is not possible to have a playlist with rtsp. I guess you could put separate rtsp links for each item. Because it is regular html, you can format it however you like.
> 
> Roger.

hello roger, I understand this example you sent and got fallbacks for rtsp, but I can not play the stream in the iphone, follow my links with examples, nothing in iphone

- here is my test link using

HDS as primary [http://revelorigin.cloudapp.net/revflash/jwplayer/index7.html](http://revelorigin.cloudapp.net/revflash/jwplayer/index7.html)

HLS as primary [http://revelorigin.cloudapp.net/revflash/jwplayer/index8.html](http://revelorigin.cloudapp.net/revflash/jwplayer/index8.html)

thanks

---

<div class="post-metadata">

**Author:** ![Denis\_Santos](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@Denis\_Santos](https://community.wowza.com/u/Denis_Santos)\
**Post date:** [February 23, 2014, 10:47pm UTC](https://community.wowza.com/t/help-with-html-code-to-play-all-devices-via-playlists-jw-player-6/39552/4 "2014-02-23T22:47:32Z")

</div>

> Hi,
> 
> Both work for me. iPhone 4s iOS7.
> 
> Note: In your second one, you have the same url (hls url) for both sources.
> 
> The order of the source urls does not decide which will be played as the primary. It is the **primary: flash** or **primary: html5** setting that decides this. Default is html5.
> 
> If the player does support both (mac safari is the only one I know of but some androids may have the option) then the primary will be used.
> 
> Roger.

Thanks in advance Roger! I do some more test in IOS enviroment.

---

<div class="post-metadata">

**Author:** ![Denis\_Santos](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@Denis\_Santos](https://community.wowza.com/u/Denis_Santos)\
**Post date:** [February 24, 2014, 10:18pm UTC](https://community.wowza.com/t/help-with-html-code-to-play-all-devices-via-playlists-jw-player-6/39552/5 "2014-02-24T22:18:38Z")

</div>

> Thanks in advance Roger! I do some more test in IOS enviroment.

hello Roger, thanks for the help,

I did more testing and this really running streaming on iphones. BUT detected a the situation: my link does not play, when the link opened by iphone via facebook messenger, in this case the player open but not play the video. By opening in safari, play normally.

Have you ever seen something like this?

[http://revelorigin.cloudapp.net/revflash/jwplayer/index9.html](http://revelorigin.cloudapp.net/revflash/jwplayer/index9.html)

---

<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:** [February 24, 2014, 10:50am UTC](https://community.wowza.com/t/help-with-html-code-to-play-all-devices-via-playlists-jw-player-6/39552/6 "2014-02-24T10:50:15Z")

</div>

Hi,

Both work for me. iPhone 4s iOS7.

Note: In your second one, you have the same url (hls url) for both sources.

The order of the source urls does not decide which will be played as the primary. It is the **primary: flash** or **primary: html5** setting that decides this. Default is html5.

If the player does support both (mac safari is the only one I know of but some androids may have the option) then the primary will be used.

Roger.

---

<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:** [February 27, 2014, 6:12pm UTC](https://community.wowza.com/t/help-with-html-code-to-play-all-devices-via-playlists-jw-player-6/39552/7 "2014-02-27T18:12:30Z")

</div>

Hi,

No I haven’t come across this before but it does sound like it may be an issue with the Facebook app rather than JW Player or Wowza.

I would suggest contacting Facebook support to see if they can resolve it.

Roger.
