Added Spotify, Tidal and IG embeds
https://open.spotify.com/track/4i9lLQkiseKbBFg9JBBkld?si=cb214e09778b495d
is oEmbed actually still a thing?
Please Login to reply.
Idk, I'm doing my own iframes
const spotifyRegex = /(?:https?:\/\/)?(?:www\.)?(?:open\.spotify\.com\/track\/)([\w-]+)(?:\S+)?/g;
replacedText = reactStringReplace(replacedText, spotifyRegex, (match, i) => {
return (
class="audio"key={match + i}width="650"height="200"style={{ maxWidth: '100%' }}src={`https://open.spotify.com/embed/track/${match}?utm_source=oembed`}frameBorder="0"allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"allowFullScreen/>);});
class="audio"
key={match + i}
width="650"
height="200"
style={{ maxWidth: '100%' }}
src={`https://open.spotify.com/embed/track/${match}?utm_source=oembed`}
frameBorder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
/>
);
});
Tidal uses oEmbed