upnpserver icon indicating copy to clipboard operation
upnpserver copied to clipboard

API to add virtual repositories

Open octplane opened this issue 10 years ago • 5 comments

Hello Olivier,

I'd like to add a "virtual" repository to the server : My project is to attempt to connect popcorn-hour datasources (primarly torrent streamed from eztv) to a uPNP server so that it could be possible to stream directly from the uPNP interface.

In order to do that, i'd like to know how and if it's possible to implement a repository that will be fed from the outside, including to serve the data to the client (in a very asynchronous way, then ;))...

Thank your for your feedback and for this library !

octplane avatar Jun 22 '14 20:06 octplane

Hello octplane, Can you contact me by gtalk: [email protected] You are french, and it will be easier for me to discuss by phone !

Regards,

oeuillot avatar Jul 08 '14 09:07 oeuillot

I all so interested in join this module.

inluxc avatar Jan 18 '15 20:01 inluxc

Ok you are welcome

oeuillot avatar Jan 26 '15 09:01 oeuillot

+1 I need this feature as well. I am beginning development on my home media center written in Node.js and I would like it to support hosting a UPnP server with this package.

Files will be comprised of both physical files or virtual files being streamed from other sources such as Torrents. The filenames will also be changed, along with the directory structure being entirely virtual.

I am very interested in contributing to this project.

Update: Looking at the source code I see the following applicable code:

  • https://github.com/oeuillot/upnpserver/blob/master/api.js#L89-L94
  • https://github.com/oeuillot/upnpserver/tree/master/lib/repositories

So if I create a media Repository for Virtual directories/files and then add support for that type then this should work.

Glavin001 avatar May 24 '15 14:05 Glavin001

Hello Glavin

I am glad you are interesting in this project.

There are 2 new features in the version 2, content-handlers and content-providers, which will interest you :

ContentHandlers I am currently adding the support of matroska / id3 / and other metadatas parsers. I must rework lot's of thing. But it will be done very soon ;-)

ContentProviders: The next step, is the support of URL format for the location of the content. (And not only the local file) I hope, it will support google-drive, http, hubic,...
I am working on proposing extension points to add your own URL protocol. (torrent ? :-) )

Repositories For repositories, I will add a new movies repository, it will be like music repository but based on matroska metadatas. I must finish history repository (Recently Watched) and 'whatsnew' repository (Recently Added).

My main problem is to test upnp devices. Recently I improve DNLA support, and ..... I lost my soundbrige, it does not want communicate any more :-(

Regards ...

oeuillot avatar May 26 '15 09:05 oeuillot