Demonstration showing how the blockchain can play video and audio.
View the sample video and audio with the live app deployed on kovan network.
These should play in most broswers and without connecting your wallet.
The data is stored on the blockchain. Anyone can play the video and audio in their app/site for free.
Clone the repo:
git clone https://github.com/chrontast/BlockStudio.git
cd BlockStudio
Install dependencies:
yarn install
Start frontend
cd BlockStudio
yarn start
In a second terminal window, start a local blockchain
yarn chain
🔏 Edit your smart contract BlockAudio.sol
in packages/hardhat/contracts/BlockAudio.sol
Change the _owner address in the constructor argument.
In a third terminal window, deploy contracts:
yarn deploy
#Drag and drop your MP4 video file. Max size is 500kb:
#It will display how many parts the video is cut into. Click on "Write Part 1" and then click each write needed.
#Refresh the screen and your video should appear.
#Drag and drop your MP3 audio file. Max size is 500kb:
#Refresh the screen and your audio should load in the player.
🌍 You need an RPC key for production deployments/Apps, create an Alchemy account and replace the value of ALCHEMY_KEY = xxx
in packages/react-app/src/constants.js
📝 Edit your frontend App.jsx
in packages/react-app/src
💼 Edit your deployment scripts in packages/hardhat/deploy
📱 Open http://localhost:3000 to see the app
Join the telegram support chat 💬 to ask questions and find others building with 🏗 scaffold-eth!