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

RMTP Link Question


Im thinking about getting a premium account but I am doing some testing first.. I have been using AMS to live stream for a few weeks using the code below. But I am trying to figure out what the link syntax would be to put for the URL in the AD URL on the JWplayer Dashboard... I have tried everything with no luck. Sorry this question is coming from a RTMP dummy! :) sample code below

<div id="myElement">Loading the player...</div>
<script>// <![CDATA[
jwplayer("myElement").setup({
playlist: [{
image: "/uploads/myPoster.jpg",
sources: [{
file: "rtmp://dmv.samplesite.com/livepkgr/livestream?adbe-live-event=liveevent"
},{
file: "http://dmv.samplesite.com:8134/hls-live/livepkgr/_definst_/liveevent/livestream.m3u8"
}]
}],
height: 360,
primary: "flash",
width: 640
});
// ]]></script>

9 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi there,

Can you please elaborate on what you mean by “what the link syntax would be to put for the URL in the AD URL on the dashboard”? Do you mean advertising? If so, your account does not appear to have advertising capabilities.

I also tried your RTMP stream in our stream tester and it looks like I am getting a “Could not connect to server” error which usually means the stream is down. If that is what you are referring to, I would recommend contacting whomever handles your RTMP stream for further troubleshooting.

Thank you.

Curtis Ross

User  
0 rated :

No I dont mean anything to do with advertising..(I mean Add where i say AD). That link in the code i sent above is not my ACTUAL link thats why its down. I would prefer not to post the actual link here... But if I have to I will..

To make this question simpler I post what I am trying to achieve below.

1) I AM the person that handles my RTMP stream.. I own AMS on MY server...
2) I ultimately would like to do HLS streaming
3) Using the sample coding I have above, what would I need to put into the JW dashboard??? IF I HAD A PREMIUM ACCOUNT??

Alex

JW Player Support Agent  
0 rated :

Hi Curtis,

Thank you for that information. If you want to continue to have a RTMP stream as your primary source and then a HLS stream as a fallback/secondary source, you would not be able to set that up in the dashboard.

However, if you were to upgrade to Premium, then you can add the HLS stream as an externally-hosted URL in your dashboard and create an embed code in the dashboard. This would only embed your HLS stream, but that is usually sufficient as HLS streams can playback in any browser and only require Flash in Internet Explorer.

This is how you would add the HLS stream URL to your dashboard if you were to upgrade to Premium:

1. Log into your JW Player dashboard.
2. Click on Content > Videos on the left sidebar.
3. Click on the red Add Video URL button towards the top of the page.
4. Paste in your HLS stream’s URL, such as http://dmv.samplesite.com:8134/hls-live/livepkgr/definst/liveevent/livestream.m3u8
5. Click the blue Add button.

The stream will then be added to your dashboard and you can generate an embed code by clicking on the Embed button for the piece of content in the list of videos.

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

Thank you!

s...

User  
0 rated :

Gotcha! That helps out a lot.

Do you have any links to resources on the JW website that can help me generate that m3u8 file? I am having trouble doing that in AMS as a newbie..

Alex

JW Player Support Agent  
0 rated :

Hi there,

I’m not too familiar with how to create HLS streams with AMS. Our platform generates HLS streams when you upload MP4s to us, but in terms of generating HLS streams through a third-party, I recommend contacting them for assistance.

Thank you.

s...

User  
0 rated :

OKay I have gotten this code to work playing on a iphone.. but not it doesnt work on the desktop....arghh!! Do you see what I am doing wrong?? By the way I posted the link to my manifest file like you said and it doesnt work. It just says no playable sources.. And I know the manifest file is working...

<div id="myElement">Loading the player...</div>
<script>// <![CDATA[
jwplayer("myElement").setup({
playlist: [{
image: "/uploads/myPoster.jpg",
sources: [{
file: "rtmp://dmv.mediatyphoon.com/livepkgr/livestream?adbe-live-event=liveevent"
},{
file: "http://www.puresinn.com/manifest.m3u8"
}]
}],
height: 360,
primary: "flash",
width: 640
});
// ]]></script>

s...

User  
0 rated :

I meant I posted the manifest file into the dashboard and the resulting embed code didnt work.

Alex

JW Player Support Agent  
0 rated :

Hi there,

The reason why this is working on iOS is because the RTMP stream cannot be played on iOS so the player is skipping over it and playing the HLS stream which works. When I try the RTMP stream in our Stream Tester, it does not play for me.

As for adding the RTMP stream to the dashboard, I’m actually having issues doing that when a RTMP stream that I know works for me so I’m going to have to escalate this to our Engineering team to see what they say. As soon as I hear back, I will let you know.

Thank you.

Alex

JW Player Support Agent  
0 rated :

Hi there,

It seems like the issue I was having with the known good RTMP stream this morning was related to another issue we were having and now it’s working just fine for me. Your RTMP stream embed will most likely continue to not work from the dashboard because the RTMP stream will not play anywhere for me.

This question has received the maximum number of answers.