We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1779881 commit 7964b10Copy full SHA for 7964b10
client/src/utils/youtubeLinkConverter.ts
@@ -0,0 +1,4 @@
1
+export function convertShortLinkToEmbedLink(shortLink: string) {
2
+ const videoId = shortLink.split("https://www.youtube.com/watch?v=")[1];
3
+ return `https://www.youtube.com/embed/${videoId}`;
4
+}
0 commit comments