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

RTMP doesn't work in RSS playlist


Hi,

The player doesn't work when I put RTMP files in the playlist. I tried with a MP4 and it worked. I tried to change some parameters and also find about it but I didn't get anything. Can you give me a hand?

Playlist: http://46.31.56.211/lab_front/JWCemex/playlist.rss (commented code works well)
Player: http://46.31.56.211/lab_front/JWCemex/jw_json.html

Thanks in advance,

Daniel

16 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi, there.

What happens if you take the code you commented out and just replace the MP4’s URL with your RTMP stream’s URL? I’ve never seen the jwplayer:provider or jwplayer:streamer elements in a RSS feed, so it may be that they are outdated. You can see all of the elements we support in RSS feeds on our External Playlists and Feeds support article.

Thank you.

daniel.alba.bec

User  
0 rated :

Hi again Alex.

Now it doesn't work even with the MP4. It keeps trying to get the Playlist and after 35 seconds failed and shows "Error loading playlist:
Error loading file".

What I've tried consists of using your playlist from https://support.jwplayer.com/customer/portal/articles/1406722-external-playlists-and-feeds and it works fine (both JW6 and JW7). So next step I tried was loading same playlist but located in my server and it doesn't work.

Do you know what is happening? I have the crossdomain file located on the root (set my server wide open).

http://46.31.56.211/lab_front/JWCemex/jw_json.html

Thanks in advance.

Daniel

Alex

JW Player Support Agent  
0 rated :

Hi, Daniel.

Your RSS feed is not loading for me. Even if I try to access it directly in the browser, the request times out. Please advise.

Thanks.

daniel.alba.bec

User  
0 rated :

Hi Alex.

Now the RSS feed loads correctly butit isn't possible to play the RTMP stream. The HLS stream plays well on my iPhone. I declared the RTMP exactly the same way as HLS and also tried with type="video/mp4" and type="application/x-fcs" without result.

How can I solve it?

Thanks in advance.

Daniel

Alex

JW Player Support Agent  
0 rated :

Hi, Daniel.

The RSS feed you are currently using at http://46.31.56.211/lab_front/JWCemex/jw_json.html is only specifying a MP4 and a HLS stream. Is one of the other RSS feeds that are commented out in your code the one that you are having issues playing RTMP streams in?

Thanks.

daniel.alba.bec

User  
0 rated :

Sorry, I've spent all day yesterday testing it and I didn't remember to update the playlist with the doubt that I wrote you.

Now you can find the RTMP stream on it ( http://46.31.56.211/lab_front/JWCemex/playlist.rss ).

Thanks Alex,

Daniel

Alex

JW Player Support Agent  
0 rated :

Hi, Daniel.

The playlist is working for me in both JW 6 and JW 7. For JW 6, you may have to set primary: “flash” in your embed code to make sure the player renders in Flash ahead of time, in order for it to see all three playlist items.

Here are some demos:

JW 6 – http://qa.jwplayer.com/~abussey/demos/feb2016/72886-rtmp-rss-jw6.html
JW 7 – http://qa.jwplayer.com/~abussey/demos/feb2016/72886-rtmp-rss.html

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

Thank you!

daniel.alba.bec

User  
0 rated :

Thanks Alex! I completely forgot the primary field! Now it works correctly.

I have another doubt, maybe you can solve it. When I migrated from JW6 to JW7, I had to use your jwplayer.js (located in your servers) because if I use mine the page always try to request jwplayerflash.swf from where the .html is located. So I added the jwplayer.flash.swf to both where the player (js) is located and to the .html file location but it still tried to request it and didn't find it... So the player didn't start playing. I have this problem with both HLS and RTMP (not with WebM).

Do you know what is causing this trouble?

Thanks so much!

Daniel

Alex

JW Player Support Agent  
0 rated :

Hi, Daniel.

When you download the self-hosted player from your account dashboard, it does include jwplayer.flash.swf in the same directory, so you shouldn’t have to manually put it there. And when using a cloud-hosted player, it knows to request jwplayer.flash.swf from our CDN.

Do you have a link to a page where our player is embedded on which I can reproduce this issue?

Thanks.

daniel.alba.bec

User  
0 rated :

Hi Alex,

JWP6, works well: http://46.31.56.211/lab_front/JWPlayer/jw6_rtmp.html

Same page with JW7 doesn't work: http://46.31.56.211/lab_front/JWPlayer/jw7_rtmp.html

I don't understand why it happens. In both players I have the .swf file according to the version of them.


I have another question, related to what I asked you the last week ( https://support.jwplayer.com/customer/portal/questions/15962272-ingest-videos-throught-a-csv-file ). I would like to batch videos only for getting analytics (I don't want to upload them, just like the ADD URL function of the website). I get it with YouTube videos (thanks to your help) but now I want to it with just a url.
I tried with this CSV file ( http://46.31.56.211/lab_front/JWPlayer_API/ingest_text4.csv ) and it didn't work. I know the download_url field is only valid when I want to upload a MP4 file but without it also failed.

Thanks in advance!

Daniel

Alex

JW Player Support Agent  
0 rated :

Hi, Daniel.

If the jwplayer.flash.swf file that came in the JW 7 ZIP file you downloaded from your account dashboard can be found at http://46.31.56.211/lab_front/JWPlayer/jwplayer.flash.swf, then it is probably an issue with your server. I suggest this because even if I try to access that URL directly into the browser, it just times out instead of download the .swf file like it should.

As for the CSV file, as long as you have the sourcetype set to url, you shouldn’t need the download_url column. You would only need to add the URL of the actual media file in a sourceurl column. For example, if I wanted to add the URL of http://www.jwplayer.com/content.mp4 to my dashboard as an external URL, I would have the following in my CSV:

sourcetype,sourceurl
url,http://www.jwplayer.com/content.mp4

Hopefully that makes more sense. Please let me know.

Thank you.

daniel.alba.bec

User  
0 rated :

Hi Alex.

Thanks for your answer.

I put in my CSV file the fields like you said and it didn't work:
CSV file: http://46.31.56.211/lab_front/JWPlayer_API/ingest_text.csv
Batch (downloaded from your website): http://46.31.56.211/lab_front/JWPlayer_API/batch.php

I also tried URL in capital letters but it neither work.


I'm also trying to add a playlist through the API (I got a RSS feed with both files and their mediaId). Is there any example code working?

Thanks in advance Alex.

Daniel

Alex

JW Player Support Agent  
0 rated :

Hi, Daniel.

It looks like you and I are going to learn something today that we both didn’t know. Apparently, you can’t add external URLs to your dashboard via a CSV – you have to do them just through PHP, like the following:

<?php
header('Content-type: text/plain; charset=utf-8');

require_once('botr/api.php');
$botr_api = new BotrAPI('YOUR_API_KEY', 'YOUR_API_SECRET');

$response = $botr_api->call("/videos/create", array(
  'sourcetype' => 'url',
  'sourceurl' => 'http://qa.jwplayer.com/~abussey/demos/media/jw_demo.mp4',
  'sourceformat' => 'mp4'
));

if ($response['status'] == "error") {
  print_r($response);
} else {
  print_r($response);
}

?>

As for adding a playlist through the API, I don’t believe there is a way to add a playlist to the dashboard through the API. At least there is nothing in the API documentation.

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

Thank you!

daniel.alba.bec

User  
0 rated :

Hi Alex, Thanks so much for your answers. I will take a look and tell you something.

Daniel

Alex

JW Player Support Agent  
0 rated :

Thanks, Daniel.

d...

User  
0 rated :

Hi again Alex,

Now it works fine doing it through PHP. I tried to do it for more than 1 video and I could only do it with separate arrays, doing 2 calls. Is it possible to add more than one url with just one call?

Thanks so much!

Daniel

This question has received the maximum number of answers.