Skip to content

Conversation

@slashtechno
Copy link
Contributor

@slashtechno slashtechno commented Aug 25, 2024

Currently, only YouTube videos are supported for the project demo.
This PR makes YoutubeRenderer fallback to playing from a URL if, for example, a link from #cdn or a raw GItHub link is set.

I wasn't sure how to test it as projects are pulled from Airtable, however.

@vercel
Copy link

vercel bot commented Aug 25, 2024

@slashtechno is attempting to deploy a commit to the Hack Club Team on Vercel.

A member of the Team first needs to authorize it.


const isYouTubeLink = youtubeLink.includes('youtube.com') || youtubeLink.includes('youtu.be');
if (isYouTubeLink) {
const youtubeID = youtubeLink.split('v=')[1];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

youtu.be links don't have v query param, thus no youtu.be links would render

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants