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

RTMP Stream in Website From RTMP Dump


Hi Community,

I am struggling to play RTMP Stream in JWPlayer and I want to embed this in my website.
Just to clear streaming is fine as I trield to play via VLC since I searched alot on google and people recommonded me that I must check RTMP stream by playing in VLC via RTMP Dump.

RTMP Server: rtmp://82.145.43.51/data4
PageURL: http://www.3patti.net/tv/ri.aspx
PlayPath: tt1
SwfURL: http://www.3patti.net/tv/player.swf

With This Command In RtmpDump I can play in VLC

rtmpdump -v -r rtmp://82.145.43.51/data4/tt1 -W http://www.3patti.net/tv/player.swf -p http://www.3patti.net/tv/ri.aspx | "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -

Please help me how to play this video in JW Player for Web via SWF Object or anyother way.

Thanks!!

3 Community Answers

Donni

JW Player Support Agent  
0 rated :

Technically, an RTMP stream consists of two pieces:

The application path (e.g. rtmp://example.com/vod/).
The stream identifier (e.g. mp4:myFolder/video.mp4).
In JW Player, these two pieces are rolled up into a single URL. JW Player determines the split between application and stream based upon the location of the mp4, flv or mp3 prefix.

An mp4: prefix is required for MP4/M4V/MOV/F4V videos:
rtmp://example.com/vod/mp4:myFolder/myVideo.mp4

Why are you using RTMP anyway? It’s not compatible on mobile devices. Can you look at using HLS?

Arslan

User  
0 rated :

Hi Donni,

Thanks for your reply. Yes you are right about HLS and Mobile Devices. We are looking into this direction as well.
But so far to kick start we are using RTMP.

Can you please see this and confirm will be end result of setup in JWPlayer as per my above stream.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>RTMP</title>
//Basic Setup For JS//
<script src="//mywebsite.com/jwplayer/jwplayer.js"></script>
<script>jwplayer.key="ABCdeFG123456SeVenABCdeFG123456SeVen=="</script>
</head>
<body>
<div id="myElement"></div>
<script type="text/JavaScript">
var playerInstance = jwplayer("myElement");
playerInstance.setup({
file: "rtmp://82.145.43.51/data4/tt1.flv",
image: "splash.jpg",
height: 360,
width: 640
});
</script>
</html>

Donni

JW Player Support Agent  
0 rated :

Sure looks good, but I’m not here to guarantee your code you should work you should be testing it yourself.

This question has received the maximum number of answers.