is oEmbed actually still a thing?

Reply to this note

Please Login to reply.

Discussion

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

/>

);

});

Tidal uses oEmbed