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

Streaming RTMP to iOS


Hello,

I am looking looking for a library and was wondering if JWPlayer can help. I am building a live streaming application and will like to view incoming RTMP streams on iOS devices. All the libraries that I find are using FFmpeg to do this but I am looking for something with hardware acceleration to view RTMP live streams. Can the JWplayer do this?

Also do i have full control of the swift or objective c over the player to manipulate the player how ever I want?

Sean



8 Community Answers

Alex

JW Player Support Agent  
1 rated :

Hi, Sean.

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.

RTMP is based off of Flash. Since Flash Player is no available on mobile devices, you cannot stream RTMP to mobile devices. I would recommend you look into HLS streams, as they are supported on both iOS and Android.

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

Thank you!

developer866

User  
0 rated :

HI Alex,
I am using JWPlayer for live TV Streaming (Rtmp) on my website which i want to use for mobile phone (Adroid), On PC it works perfectly but on mobile it gives me an error "Error loading player: No playable sources found", As in my script i already mentioned AndroidHLS: true
but still not working.
here is my script:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Testing Player</title>
<script type="text/javascript" src="player/jwplayer/jwplayer.js"></script>
<script type="text/javascript" src="player/jwplayer/jwplayer.html5.js"></script>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

</head>
<body>


<div id="HDPlayer">Loading the player...</div>
<script type="text/javascript">
jwplayer("HDPlayer").setup({
title: "HD TV",
file: 'rtmp://5.254.116.206:1935/ARYNEWS/myStream_264K',
androidhls: true,
primary:'flash',
autostart:'true',
width:'100%',
height: '660',
aspectratio:'16:9'


});

</script>


</body>
</html>

Alex

JW Player Support Agent  
0 rated :

Hi.

As I’ve said, RTMP is able to be viewed on mobile devices because it requires Flash, which is not available on mobile.

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

Thank you!

Khurshid

User  
0 rated :

Hi Alex,
Thanks for your reply, Kindly give me solution for the that issue or it will be best if you provide me script as my web will be use on Android only.

Thanks.

Alex

JW Player Support Agent  
0 rated :

Khurshid,

RTMP cannot be used on any mobile devices, iOS or Android. As I’ve suggested before, I would recommend you look into HLS streams, as they are supported on both iOS and Android.

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

Thank you!

jimztercrack

User  
0 rated :

You can use vitamio

jimztercrack

User  
0 rated :

From here: https://www.vitamio.org/en/ and https://github.com/red010182/SwiftVitamioDemo

Alex

JW Player Support Agent  
0 rated :

jimztercrack,

That’s interesting. It looks like it does some transcoding on the fly using ffmpeg to convert the Flash-based formats to ones support on iOS and Android.

This question has received the maximum number of answers.