All Projects → jaruba → PowderNPAPI

jaruba / PowderNPAPI

Licence: LGPL-2.1 license
(deprecated) Peerflix interface for the browser. (npapi plugin)

Programming Languages

C++
36643 projects - #6 most used programming language
CMake
9771 projects
applescript
352 projects
Rebol
56 projects

Powder NPAPI Plugin

Deprecated: Since December 2015 there are no longer any browsers that support NPAPI plugins, this repo will remain up in hopes that it might still have some value for someone in the future.

Peerflix interface for the browser. NPAPI Plugin made with FireBreath + Node.js + Peerflix.

SEE OUTPUT DEMO

SEE STREAMING DEMO (also requires WebChimera Plugin installed and enabled on the page)

Embedding in page:

<object id="powder" type="application/x-powdernpapi" width="1" height="1"></object>

Streaming Demo Source Files: gh-pages branch

JS API

Start Peerflix - requires the info hash from a magnet link, returns a stream id (int). The streaming link will be returned in the "torrentData" event.

.getStream(infoHash)

Request Data - requires a stream id, returns "true" if new data is available and "false" if no new data is available. This function does not return the data in order to not freeze the page while waiting for a response, the data will come when the "torrentData" event is triggered.

.requestData(streamId)

Read Data - event that returns a stream id and json data from peerflix. The JSON Object can contain: runtime, path, uploaded, downloaded, peerqueue, seeds, link, filename, size.

torrentData(streamId,jsonData)

Kill Stream - terminates a process by stream id.

.killStream(streamId)

Kill All - terminates all peerflix processes.

.killAll()
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].