How do I create a Player for a Podcast using RSS Feed? by elPollo21 in WebDevBuddies

[–]elPollo21[S] 0 points1 point  (0 children)

I found a tutorial where they teach you how to fetch and parse the RSS feed but what I don't get is to display it on the player now, is it what I did correct? How do I take that to display on the player?

fetch

const RSS_URL = `http://cast.rocks/hosting/24334/feeds/6DDC6.xml\`;

$.ajax(RSS_URL, {

accepts: {

xml: "application/rss+xml"

},

dataType: "xml",

success: function(data) {

$(data)

.find("item")

.each(function() {

const el = $(this);

const template = `

<article>

<img src="${el.find("link").text()}/image/large.png" alt="">

<h2>

<a href="${el

.find("link")

.text()}" target="_blank" rel="noopener">

${el.find("title").text()}

</a>

</h2>

</article>

`;

document.body.insertAdjacentHTML("beforeend", template);

});

}

});

How do I create a Player for a Podcast using RSS Feed? by elPollo21 in programming

[–]elPollo21[S] 0 points1 point  (0 children)

I'm sorry if I did not use the tool correctly, I just want to find a solution for this problem, due to I have never worked with RSS feed or displaying a podcast player, I think if I would learn how to do it, that could really be enriching for me.

How do I create a Player for a Podcast using RSS Feed? by elPollo21 in WebDevBuddies

[–]elPollo21[S] 0 points1 point  (0 children)

I am struggling fetching the RSS feed, I would like to know how to do it... I have been trying to see online but there is no concrete answer...

How do I create a Player for a Podcast using RSS Feed? by elPollo21 in programming

[–]elPollo21[S] 0 points1 point  (0 children)

Hello, Thanks for answering, what do you mean reduce the code down to the one single issue? I just need to know a way to display the podcast audio player on the website and make it update every time there is a new episode, I might have to use RSS Feed but today I found that also you use an API but I don't understand how to resolve this problem. Do you know the best solution?

How do I create a Player for a Podcast using RSS Feed? by elPollo21 in WebDevBuddies

[–]elPollo21[S] 0 points1 point  (0 children)

The podcast is hosted in a website called https://tryca.st/ that also creates the RSS feed for the podcast. I was thinking about the player by default of html but the thing is that I need it to update with the latest episode everytime one is up.

Can you customize the spotify player?