Explain why I get such a url. I'm trying to pull a video from YouTube. Error in console:
GET http://localhost:3000/www.youtube.com/watch?v=IEDEtZ4UVtI 404 (Not Found)
GET http://localhost:3000/www.youtube.com/watch?v=IEDEtZ4UVtI 404 (Not Found)
Why do I have my localhost first and then a link to the video? How can this be fixed? index.js:
import Head from "next/head";
import Image from "next/image";
import styles from "../styles/Home.module.css";
export default function Home() {
return (
<div className={styles.wrapper}>
<video controls>
<source src="www.youtube.com/watch?v=IEDEtZ4UVtI" type="video/mp4" />
</video>
</div>
);
}
Project folder: Project folder