nyaa icon indicating copy to clipboard operation
nyaa copied to clipboard

WebTorrent integration for in-browser streaming of anime

Open 8zIWLjcB opened this issue 7 years ago • 15 comments

https://github.com/webtorrent/webtorrent Add a button next to "Magnet Link" "Torrent File" named "Play". Only needs frontend changes. WebTorrent does not require any special plugins besides browser support for WebRTC. Coupled with AniDB integration, it would be very neat to have.

8zIWLjcB avatar Jul 03 '17 15:07 8zIWLjcB

I already saw it (just read roughly) but doesn't it need to have web peers instead of torrent peers?

akuma06 avatar Jul 03 '17 15:07 akuma06

You need to have peers with support for WebRTC. In practice, this means peers using Popcorn Time or Vuze. However, libtorrent-rasterbar is working on adding it which is used by most major torrent clients.

8zIWLjcB avatar Jul 03 '17 15:07 8zIWLjcB

Ok I just skimmed through it so I wasn't sure if I got it right ^^. Then it can be a good addition, since we also plan to add this feature into the android app with the help of the torrent library from popcorn

akuma06 avatar Jul 03 '17 15:07 akuma06

Are there any webtorrent players that don't use jquery or any other frameworks? I found https://github.com/ferrolho/magnet-player which is quite easy to just download compiled from https://ferrolho.github.io/magnet-player/ and then edit out the cloudflare stuff, but it uses jquery. We could use jquery only for the player page, but that still feels unclean. Thoughts?

8zIWLjcB avatar Jul 03 '17 22:07 8zIWLjcB

Would be easy to have a standard HTML5 video player and pipe the torrent.files.forEach(function (file) { } function into it. The problem is with mkv videos and subtitles.

kipukun avatar Jul 05 '17 21:07 kipukun

Why do you think about ~~web app~~ desktop app using Electron? This app would be integrated with pantsu api and provides easy way to stream using Web torrent library.

xdk78 avatar Aug 03 '17 19:08 xdk78

@xdk78 desktop app that combines popcorntime + taiga would be amazing We could also trial blockchain db for it as well

ewhal avatar Aug 04 '17 00:08 ewhal

@ewhal When I will start do this I will give you some info

xdk78 avatar Aug 04 '17 09:08 xdk78

@ewhal @akuma06 Design ok? 😄 http://imgur.com/fGBBzma http://imgur.com/BbfY8KY

xdk78 avatar Aug 07 '17 12:08 xdk78

I'm using electron with vue.js and vuetify(material design for vue.js)

xdk78 avatar Aug 07 '17 12:08 xdk78

@xdk78 looks good and I made a new repo for it and gave you write permissions to it.

ewhal avatar Aug 07 '17 12:08 ewhal

@ewhal name Pantsubox it's ok? https://github.com/NyaaPantsu/Pantsubox Could add me full access to this repo?

xdk78 avatar Aug 07 '17 12:08 xdk78

Should be fine unless someone comes up with a better name

ewhal avatar Aug 07 '17 13:08 ewhal

I'd like to put forward the name Cinnamon, which i've been using in my own development efforts on this issue.

liilac avatar Aug 07 '17 13:08 liilac

I will start implementing streaming feature, now app looks nicely 😄 http://imgur.com/a/NBhhI https://github.com/NyaaPantsu/Pantsubox

xdk78 avatar Aug 09 '17 18:08 xdk78