使用IPFS播放视频
1、添加
添加视频文件到IPFS存储仓库:
ipfs add -q sintel.mp4 | tail -n1
等待得到hash码,然后播放有几种方式:
2、播放
- 命令行,输入:
ipfs cat $vidhash | mplayer -vo xv -
- 通过本地gateway服务:
mplayer http://localhost:8080/ipfs/$vidhash
- 通过浏览器:
chromium http://localhost:8080/ipfs/$vidhash