Skip to content

Commit

Permalink
完善功能和介绍
Browse files Browse the repository at this point in the history
  • Loading branch information
bill080307 committed Dec 1, 2019
1 parent 7434acc commit 0c18d2c
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 4 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,29 @@
# VideoShare
基于IPFS的分布式视频分享平台
Project Demo

首页截图

[http://ipfs-gateway.dlimba.top:8082/ipns/QmUnZTQFJCd573goUHECvkG63UdAW9CTgZAMvp8EkGnMmJ/](http://ipfs-gateway.dlimba.top:8082/ipfs/QmYTYx78yy8Dt7DqQU7Py1sJL2P9xjXjb85r3KzvLM71Qs) [ipv4](https://ninetailed.ninja/ipfs/QmYTYx78yy8Dt7DqQU7Py1sJL2P9xjXjb85r3KzvLM71Qs) [ipv6](https://gateway.ipfs.io/ipfs/QmYTYx78yy8Dt7DqQU7Py1sJL2P9xjXjb85r3KzvLM71Qs)

![home demo](demo/demo-home.png)

列表页截图

[http://ipfs-gateway.dlimba.top:8082/ipns/QmUJf5PCMFdcKtKhEH5Pa5zugJaM9WUxBrrR6EZeWnbWdd/](http://ipfs-gateway.dlimba.top:8082/ipfs/QmcoDGA9akYj5fy9FADnpiAbG4MqUFYo8AEnWHxHNr22a1) [ipv4](https://ninetailed.ninja/ipfs/QmcoDGA9akYj5fy9FADnpiAbG4MqUFYo8AEnWHxHNr22a1) [ipv6](https://gateway.ipfs.io/ipfs/QmcoDGA9akYj5fy9FADnpiAbG4MqUFYo8AEnWHxHNr22a1)

![home demo](demo/demo-list1.png)

[http://ipfs-gateway.dlimba.top:8082/ipns/QmXidpbD1osmHXWN4gJc3NHry3kzTnicnp9Utrpxk6s4Du/](http://ipfs-gateway.dlimba.top:8082/ipfs/QmPnXvWUuvAEchE1SxgpXTUXhQfUKqXgZ5XJZfxrUsP94R) [ipv4](https://ninetailed.ninja/ipfs/QmPnXvWUuvAEchE1SxgpXTUXhQfUKqXgZ5XJZfxrUsP94R) [ipv6](https://gateway.ipfs.io/ipfs/QmPnXvWUuvAEchE1SxgpXTUXhQfUKqXgZ5XJZfxrUsP94R)

![home demo](demo/demo-list2.png)

播放页面截图

[http://ipfs-gateway.dlimba.top:8082/ipfs/QmPh5RHFtxrKBx7b8YDr3y72cycjmhFtHiryafz7jeeEws](http://ipfs-gateway.dlimba.top:8082/ipfs/QmPh5RHFtxrKBx7b8YDr3y72cycjmhFtHiryafz7jeeEws) [ipv4](https://ninetailed.ninja/ipns/QmPh5RHFtxrKBx7b8YDr3y72cycjmhFtHiryafz7jeeEws) [ipv6](https://gateway.ipfs.io/ipns/QmPh5RHFtxrKBx7b8YDr3y72cycjmhFtHiryafz7jeeEws)

![home demo](demo/demo-player1.png)

[http://ipfs-gateway.dlimba.top:8082/ipfs/QmVNAuckPWSyLfJdEAPPt8WUnJCNvowZZ1pWHcy37w4do6](http://ipfs-gateway.dlimba.top:8082/ipfs/QmVNAuckPWSyLfJdEAPPt8WUnJCNvowZZ1pWHcy37w4do6) [ipv4](https://ninetailed.ninja/ipns/QmVNAuckPWSyLfJdEAPPt8WUnJCNvowZZ1pWHcy37w4do6) [ipv6](https://gateway.ipfs.io/ipns/QmVNAuckPWSyLfJdEAPPt8WUnJCNvowZZ1pWHcy37w4do6)

![home demo](demo/demo-player2.png)
Binary file added demo/demo-home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/demo-list1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/demo-list2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/demo-player1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/demo-player2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion tool/gateway/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ def loadjson(jsonfile):
h = api.name.resolve(v1)
r.set(v1, h['Path'][6:])
r.set(k1, h['Path'][6:])

for k1, v1 in data['global'].items():
h = api.name.resolve(v1)
r.set(v1, h['Path'][6:])
r.set(k1, h['Path'][6:])
6 changes: 3 additions & 3 deletions tool/pin-server/data/videoshare.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"userlist": "QmQGnj64hiKZzNpX8ZisvSyekk5SHH5K4bGbXFV4sYmEm1",
"player": "QmTVLLN7varEJRYh9x8acFfRmHKkr6utMBvGny4FJLjaLH"
},
"global": [
"QmUnZTQFJCd573goUHECvkG63UdAW9CTgZAMvp8EkGnMmJ"
]
"global": {
"home": "QmUnZTQFJCd573goUHECvkG63UdAW9CTgZAMvp8EkGnMmJ"
}
}
3 changes: 3 additions & 0 deletions tool/pin-server/pin-manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ def getmyhash():
mylist.append(t3['cover'][6:])
for v4 in t3['files']:
mylist.append(v4['url'][6:])
for k1, v1 in data['global'].items():
h = api.name.resolve(v1)
mylist.append(h['Path'][6:])
return mylist


Expand Down

0 comments on commit 0c18d2c

Please sign in to comment.