Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

link for mobile playback broken after jwplayer update


I recently upgraded my jwplayer to 7.2.4, and somehow it broke the link it previously had to open a player on mobile devices. I have a call like:
<div id="player">
<a href="rtsp://[server id]:1935/live/<?php echo $flightId?>">Streaming RTSP Link--Click here.</a>
</div>
Down below I call the player like this:
jwplayer("player").setup({
sources: [{file: "rtmp://[server id]:1935/live/flv:<?php echo $flightId?>"}],
rtmp: {
bufferlength: 3
},
image: "app/images/skytubelive_logo.png",
fallback: false,
autostart:true,
width: "100%",
height: "100%",
ratio: "100%",
responsive: true,
});

Formerly on a PC this would show a jwplayer box and on the phone would show that link, that you could click on and it would then query you for what app you wanted to play the stream with. Now, however, on the phone, as on a PC, it shows a jwplayer screen, which of course does not work on a phone. I assume there must be some setting I need to change to resolve this in jwplayer.js, but I can't find what it might be. Please help!

6 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi, there.

My name is Alex and I am one of the Support Engineers at JW Player. I will be more than happy to assist you with your questions.

You are experiencing this behavior because the fallback configuration option does not exist in JW 7 because our player will be able to render its controls in HTML5 no matter how the actual player is being rendered. This was different in JW 6 where it would not show the player at all if fallback: false was in your embed. If you left that option out, you would be seeing similar behavior in JW 6 (“No Playable Sources” error).

It seems like you have two options to remedy this in JW 7:

1) (Best Option) – Look into using HLS as your streaming format as its supported in desktop browsers and natively supported on both iOS and Android.
2) Write some JavaScript to check the user agent of the browser and use what is returned to decide how to embed your <DIV>.

Please let me know if you need any more help or have any other questions.

Thank you!

Brian

User  
0 rated :

We should be able to use HLS just fine with our streaming engine--can you possibly provide any tips on the changes to my above code that will work? I have not been able to get it to work as of yet.

Alex

JW Player Support Agent  
0 rated :

Hi, Brian.

I’m not quite sure I understand your question. If you’re able to get a HLS stream from your streaming provider, you would just replace the RTMP url in your configuration with the URL of the HLS stream. You would also be able to remove the rtmp block from your code.

Brian

User  
0 rated :

Hi, I'm using wowza streaming engine. I changed my call as above to have sources like this:
sources: [
{file: "rtmp://52.20.68.152:1935/live/flv:<?php echo $flightId?>"},
{file: "http://52.20.68.152:1935/live/<?php echo $flightId?>/playlist.m3u8"}],
Now the rtmp works to play on the pc, and on my phone jwplayer has a play button but when I push it it just shows a black screen, no stream ever shows up. (When I just use the http line as above it doesn't work on my PC.)
I've tried to read their documentation on their site but haven't been able figure out how to used HLS live streaming with your player. Are you at all familiar enough with their setup to know what I'm doing wrong, and where I need to point your player?
Thanks!

Brian

User  
0 rated :

Hi Alex,

Is the problem I'm having due to the free version of jwplayer not supporting HLS?

Thanks,

Brian

Alex

JW Player Support Agent  
0 rated :

Hi, Brian.

I do not have much knowledge of the inner-workings of Wowza’s products. Have you tried access your HLS stream’s URL directly in Safari (either for Mac or iOS)? This should be a good indicator of the whether or not the stream is working properly, as Safari natively supports HLS. As for your second question, HLS playback will work in Safari (for Mac or iOS) or Chrome for Android because of their native support for HLS – you do not need a Premium account for the stream to play in those browsers, but you would need one if you want the stream to play on other browsers.

Please let me know if you need any more help or have any other questions.

Thank you!

This question has received the maximum number of answers.