Inspiration
For many years, video creators have been underpaid for their amazing work. Their reward goes mostly to platforms that host their videos. Myself as a content creator I have been in that situation too. That's why I decided to create a platform not owned by anyone and where rewards go directly to the creator himself
What it does
This app helps creators post their videos online and get reward by view numbers. Also for users, they have access to all videos on the platform and pay a fee set by the creator as a reward. Users can also own videos as NFTs
How we built it
This full stack decentralized application was built in two parts -- The backend part which is a smart contract that lives on polygon mumbai testnet was built using solidity together with the openzeppelin and chainlink price feeds. This was tested using chai --The frontend part was built using next.js and we use ethers.js as our api to interact with the smart contract . Then to store videos and their metadata we used web3.storage which is built on top of filecoin
Challenges we ran into
During this build we ran into two major challenges listed below.
- Since we are storing users who have access to a certain video in an array we had to initialize that array that became a little bit hard since solidity expect everything to be statically defined before
- The second challenge was to store videos on filecoin which was a nightmare. But we found a way of doing that with the web3.storage api which is powered by filecoin and built by the protocol labs.
Accomplishments that we're proud of
We are really proud of creating and deploying this application but during the process , we had some achievements that were key to the success of this build. -- Finding a way of storing all users who paid their watching fee and give them lifetime access to the video was really a key achievement to this built. It took time to figure out but we finally succeded --implementing new security features of the ERC721 token and being able to successfully test our application another important achievement during this build
What we learned
This experience was really game-changing in my journey into web3 development . After completing this build I learned how to test my smart contract and how to deploy to polygon testnet. I learned more about chainlink and all its use cases and I will definitely explore deep into data feeds and the VRF .
What's next for Dmovie
Our application will now be accessible for testing to a large number of users and collect their feedback then later on after polishing our application we'll deploy our smart contract to the polygon mainnet and hopefully launch it for commercial(daily) use
Log in or sign up for Devpost to join the conversation.