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

Can't embed with RSS Playlist


I am trying to embed the jwplayer with an RSS playlist, but it isn't working. I get an "Error loading playlist: Error loading file" error, which elsewhere on this site indicates that the RSS file isn't loading, probably due to CORS header issue.
I have tried doing this cross-domain on a website hosted by dreamhost.com. They have suggested that I put the .rss file on a Virtual Private Server that I have with them, and I have done so, and it still doesn't work. I am still pursuing that with their tech support.
I read the Q&A at http://support.jwplayer.com/customer/portal/questions/6244278-using-an-rss-feed and the suggestion that I put everything on the same subdomain. I have done so, and the result is at http://english.globalreach.org/index.cfm?event=lessonlist&cid=40 but it's still not working.

Here is the code I used to embed the video:

===code starts here===
<script src="http://jwpsrv.com/library/mK+kXudlEeOyMyIACtqXBA.js"></script>
<center>

<div id="myElement">Loading the player...</div>
<script type="text/javascript">
jwplayer("myElement").setup({
playlist: "http://english.globalreach.org/english/images/S3131en-play-globalreach.rss",
width: 680,
height: 360,
listbar: {
position: "right",
size: 240
}

});
</script>
</center>
===code ends here===

and here is the rss text that is in the file that I have placed in the exact same folder and subdomain. This file is called: S3131en-play-globalreach.rss

====RSS text starts here===
<rss version="2.0" xmlns:jwplayer="http://rss.jwpcdn.com/">
<channel>

<item>
<title>Lesson 1:</title>
<description>God: His Nature and Natural Characteristics</description>
<jwplayer:source file="http://english.globalreach.org/english/images/S3131en-L01-AGTV-MP4-Wide.mp4" />
<jwplayer:image>http://english.globalreach.org/english/images/E0100TL_L01.jpg/S3131en-L01-Thumb.jpg</jwplayer:image>
</item>

<item> <title>Lesson 2:</title>
<description>God: His Moral Characteristics and Works</description>
<jwplayer:source file="http://english.globalreach.org/english/images/S3131en-L02-AGTV-MP4-Wide.mp4" />
<jwplayer:image>http://english.globalreach.org/english/images/E0100TL_L02.jpg</jwplayer:image>
</item>

<item> <title>Lesson 3:</title>
<description>Christ</description>
<jwplayer:source file="http://english.globalreach.org/english/images/S3131en-L03-AGTV-MP4-Wide.mp4/location> <jwplayer:image>http://english.globalreach.org/english/images/E0100TL_L03.jpg</jwplayer:image>
</item>

<item> <title>Lesson 4:</title>
<description>The Holy Spirit</description>
<jwplayer:source file="http://english.globalreach.org/english/images/S3131en-L04-AGTV-MP4-Wide.mp4" /> <jwplayer:image>http://english.globalreach.org/english/images/E0100TL_L04.jpg</jwplayer:image>
</item>



<item> <title>Lesson 5:</title>
<description>Angels: Armies of Darkness and Armies of Light</description>
<jwplayer:source file="http://english.globalreach.org/english/images/S3131en-L05-AGTV-MP4-Wide.mp4" />
<jwplayer:image>http://english.globalreach.org/english/images/E0100TL_L05.jpg</jwplayer:image>
</item>

<item> <title>Lesson 6:</title>
<description>Mankind: Human Subjects of the Creator</description>
<jwplayer:source file="http://english.globalreach.org/english/images/S3131en-L06-AGTV-MP4-Wide.mp4" />
<jwplayer:image>http://english.globalreach.org/english/images/E0100TL_L06.jpg</jwplayer:image>
</item>

<item> <title>Lesson 7:</title>
<description>Sin and Salvation: Problem and Solution</description>
<jwplayer:source file="http://english.globalreach.org/english/images/S3131en-L07-AGTV-MP4-Wide.mp4" />
<jwplayer:image>http://english.globalreach.org/english/images/E0100TL_L06.jpg</jwplayer:image>
</item>

<item> <title>Lesson 8:</title>
<description>The Scriptures: God’s Written Revelation</description>
<jwplayer:source file="http://english.globalreach.org/english/images/S3131en-L08-AGTV-MP4-Wide.mp4" />
<jwplayer:image>http://english.globalreach.org/english/images/E0100TL_L06.jpg</jwplayer:image>
</item>

<item> <title>Lesson 9:</title>
<description>The Church: The Community of God’s People</description>
<jwplayer:source file="http://english.globalreach.org/english/images/S3131en-L09-AGTV-MP4-Wide.mp4" />
<jwplayer:image>http://english.globalreach.org/english/images/E0100TL_L06.jpg</jwplayer:image>
</item>

<item> <title>Lesson 10:</title>
<description>The Future: Revelation, Reward, and Rest</description>
<jwplayer:source file="http://english.globalreach.org/english/images/S3131en-L10-AGTV-MP4-Wide.mp4" />
<jwplayer:image>http://english.globalreach.org/english/images/E0100TL_L06.jpg</jwplayer:image>
</item>

</channel>
</rss>
===RSS Text ends===
I appreciate any help that you can give me with this code.

5 Community Answers

Todd

JW Player Support Agent  
0 rated :

I believe you have a syntax error inside the Lesson 3 section:

is missing a " after the .mp4 and the word “location” should probably be removed. The playlist loads correctly after I changed that whole line to:

<jwplayer:source file="http://english.globalreach.org/english/images/S3131en-L03-AGTV-MP4-Wide.mp4" />;

Hope this helps,
Todd

fkovach

User  
0 rated :

THanks for the correction! However, I made the correction and uploaded the file and it still isn't working. It's still giving me the "Error loading playlist:
Error loading file" error.

When you say that it loaded, does that mean that you were able to play back the video files off of our website; or are you saying that you were able to verify that the file loaded with no problems. If so, I am curious to know how you were able to verify that. I've been wanting to verify the file loading, but don't know how.

Other than that, can you think of a reason why it would load for you but not off of our own website?

Thanks,
Fred

Todd

JW Player Support Agent  
0 rated :

Hi Fred,

Please send me a link to your web page with the error so I can investigate further.

Thanks,
Todd

fkovach

User  
0 rated :

I finally figured out how to get Chrome to give me the header information.

There are two sites. The first one is the one where the domains match. http://www.globalreach.org/index.cfm?event=lessonlist&cid=40 Chrome is giving me a 404 - file not found on the S3131en-play-globalreach.rss file for this one. But alas, I can't access the ftp from the house, so I can't check things out.

The second one is one a virtual private server and it is now allowing it to go through. It is at: http://www.globalreach.org/index.cfm?event=lessonlist&cid=36

The problem before is that the server was wanting http://www.grplayer.fredcrystal.com not http://grplayer.fredcrystal.com like I had in the code! The clue was the error 301 that it threw. Apparently, the server was redirecting and it found it, but it didn't like the redirect.

However, it still wasn't working, and said it wasn't a valid RSS feed. On further inspection, I found that I still had somehow left out the closing " on the infamous lesson three. So now this is happily running. I have to clean up the code, because it refers to images that belong to another course. And I am considering increasing the resolution on it so that it looks better. But you are welcome to look at it!

I suspect that the issues will be similar on the first link, once I get into the office and can access the FTP server.

Thanks for your help!
Fred


Todd

JW Player Support Agent  
0 rated :

Hi Fred,

Any luck with the 404 for S3131en-play-globalreach.rss? I believe once you get that one pegged, this site will work as well.

Kind regards,
Todd

This question has received the maximum number of answers.