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

Related RSS feed not working with new version


Hello,

we were making use of related function in version 7.1.4 by providing RSS with links to webpages with embeded jwplayer and not direkt urls to video files. It seems that this is no longer working in 7.4.3.

When you clicked on thumnail

Example of item in our RSS feed is:
<item>
<title>test0</title>
<link>https://video-test.arnes.si/portal/video/asset.zul?id=M1DknVfebbuOAcNqXGvCh5W5</link>
<description>asdsa</description>
<pubDate>Thu, 09 Jun 2016 13:11:10 GMT</pubDate>
<guid>https://video-test.arnes.si/portal/video/asset.zul?id=M1DknVfebbuOAcNqXGvCh5W5</guid>
<dc:date>2016-06-09T13:11:10Z</dc:date>
<media:thumbnail url="http://download3.video-test.arnes.si/media/1/g/g2qLZ5dHMZeNbZZmAMqjI4EY/g2qLZ5dHMZeNbZZmAMqjI4EY.jpg" />
</item>

We noticed that there is another required field in newer version (media:content) so we added it to the item:

<item>
<title>test1</title>
<link>https://video-test.arnes.si/portal/video/asset.zul?id=M1DknVfebbuOAcNqXGvCh5W5</link>
<description>asdsa</description>
<pubDate>Thu, 09 Jun 2016 13:11:10 GMT</pubDate>
<guid>https://video-test.arnes.si/portal/video/asset.zul?id=M1DknVfebbuOAcNqXGvCh5W5</guid>
<dc:date>2016-06-09T13:11:10Z</dc:date>
<media:thumbnail url="http://download3.video-test.arnes.si/media/1/g/g2qLZ5dHMZeNbZZmAMqjI4EY/g2qLZ5dHMZeNbZZmAMqjI4EY.jpg" />
<media:content url="https://video-test.arnes.si/portal/video/asset.zul?id=M1DknVfebbuOAcNqXGvCh5W5" />
</item>

It still shows up in javascript console in browser that feed is not valid.

I cannot provide link to our private testing site but here is player's related config, which worked on 7.1 but fails on 7.4:
related: { file: 'https://video-test.arnes.si/portal/api/feeds/category/art_history?exclude_asset_id=pfgQirLHAUFV8QfiRo8WmF8Y', onclick: 'link', oncomplete: 'display', heading: 'Related''}

Here is example video on our prduction site with 7.1 player: https://video.arnes.si/portal/asset.zul?id=E2JCJ5nTXN9NdscZeMpvAGFV
Related is working here.

How can we make this work on 7.4?

Thank you,
best regards


5 Community Answers

video-podpora

Best Answer 

I've just found out what was wrong:

Response header content-type was not set to application/rss+xml. Strangely it worked before.
Setting this solved the problem, no further changes were necessary. Thanks for helping.

Regards.

View in conversation

Donni

JW Player Support Agent  
1 rated :

Hi there,

Thanks for contacting JW Support. I’m Donni, one of the Support Engineers at JW Player.

Are you able to link directly to an .rss or json file? I think that may be the issue here.

Let me know if that helps,
Donni

video-podpora

User  
0 rated :

Hi,

here is the link to production random RSS feed which is working with older version of player (7.1):

https://video.arnes.si/portal/api/feeds/category/slovene?exclude_asset_id=x1VpBKKqcuhbaIESDTy77irF

In our test environment we use 7.4 and it doesn't work with this structure of feed.
We tryed by adding new field <media:content url="..." /> element to item elements, but RSS is still not valid.

Regards

Donni

JW Player Support Agent  
0 rated :

The actual file you need to reference in your embed code should end in .rss or .json.

video-podpora

User  
0 rated :

Thanks for response.

We are generating RSS output through REST API. So the output of REST endpoint is the content of RSS file, there is no actual file. Is this no longer supported, because it worked that way before?

I tried renaming the REST API endpoint path so it ends with .rss on our test server (this link is only for example, test servers are private):

https://video.arnes.si/portal/api/feeds/category/slovene.rss?exclude_asset_id=x1VpBKKqcuhbaIESDTy77irF
or
https://video.arnes.si/portal/api/feeds/category/slovene.rss

It looks like actulas .rss file, but it is still not working, error is: RELATED: This feed is not valid XML, JSON, and/or RSS feed.
It works with the same content when I copy contents to actual file and link to it whether it has .rss extension or not, so there is no problem with content ... But we would like the content to be dynamically generated through REST API and returned as response body, as it worked with 7.1.

Any idea how we should fix this?

Regards

video-podpora

Best Answer  User  
1 rated :

I've just found out what was wrong:

Response header content-type was not set to application/rss+xml. Strangely it worked before.
Setting this solved the problem, no further changes were necessary. Thanks for helping.

Regards.

This question has received the maximum number of answers.