Your YouTube channel isn’t yours.
YouTube is great. It’s fast. It’s easy. And of course, it’s free. But if you want to be in complete control of your content, you will need to build your own platform, on your own web site. Generally that means using a content distribution network (CDN), which is designed to store large files, and serve them up quickly.
A Web3 Solution
For a completely decentralized option, videos for Creator will be hosted on IPFS via Fleek Storage. A recent post titled The Squeeze on Content Creators was the first on the site to feature an embedded video. Read on for a complete breakdown of the process, and you can use a similar approach for hosting your own videos.
First, the open source Video JS video player was added to the Creator web site. Following the path of least resistance, the default player was imported from Video JS CDN storage by simply copying and pasting two lines of code into the site’s HTML. The link to the video player CSS was inserted in the header.
<link href="https://vjs.zencdn.net/7.15.4/video-js.css" rel="stylesheet" />
The video was embedded using the example HTML from that same Video JS page. For Creator, two optional CSS classes were included. Adding
vjs-big-play-centered centers the play button in the player thumbnail image. And
vjs-fluid made the player size responsive instead of a fixed dimension.
Here’s an example of what the complete video element HTML looks like.
The thumbnail or poster image is located in the site’s assets folder in Jekyll. The video location comes from Fleek Storage.
To upload the video file to Fleek, look for the Storage link in the account.
Click the upload button and select your video file. It may take a bit, but eventually you should see a confirmation that your video has been uploaded. Click the “Verify on IPFS” link, and copy the URL.
Paste that in as the source for the video on your site, and you are good to go.
Congrats, video creator, you have successfully decentralized your content. Now pop some popcorn, and mash that play button.