mafintosh / playback

Video player built using electron and node.js
https://mafintosh.github.io/playback/
MIT License
2.01k stars 237 forks source link

Torrent-stream/jPlayer esque API #56

Open iadj opened 9 years ago

iadj commented 9 years ago

Something which I really like about Torrent-Stream, Webtorrent, and jPlayer is its simple to use API. The ability to easily programmatically add/play content and download/seed torrents would allow for easy client customization.

i.e:

player.addToPlayList({ URL: 'http://xxx.xxx/aaa.torrent', autoPlay: true, cacheLocation: 'file://${__dirname}/torrentCache' })

and

player.play('URL')

freeall commented 9 years ago

So you mean it should run as a daemon and you could connect to it and add to the playlist, etc?

iadj commented 9 years ago

@freeall Not necessarily although that's a great idea! My thoughts were to have an API within the player app itslef. I feel like lots of opportunities for customization open up when there are some torrent-stream like functions available for Playback.

freeall commented 9 years ago

I think I understand what you want, but you need to connect to the app somehow? Or did you want to create a wrapper around the application that does something and then adds to the playlist?

iadj commented 9 years ago

@freeall Yeah I'd like to try wrapping some things around the Playback player