Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cowfish as full UPnP AV server
03-26-2008, 08:15 PM
Post: #1
Cowfish as full UPnP AV server
Hi,

As the current version of Cowfish includes a Web server, and mainly a UPnP is a web server plus SSDP and content management... Why not mix some Java UPnP AV server (like CyberlinkMediaGate) inside Cowfish?

I like to use my other UPnP players without 3rd party translators to access to the M740AV recordings. Please, note that we don't need some realtime transconding, only publish the MPEG (patched and as full MPEG file like Cowfish does) in a UPnP Server environment.

I sure that without much effort it's easy to mix with cmgate-java!

See: http://cowfishserver.sourceforge.net/
and http://sourceforge.net/project/showfiles..._id=109386

Which like to do?
Find all posts by this user
Quote this message in a reply
03-26-2008, 09:07 PM
Post: #2
RE: Cowfish as full UPnP AV server
Hi kapot,

a UPnP support for the cowfish sounds interesting. Does anybody know, how the UPnP Client navigates through the stream? Does the clients use time-tags/time-code (that would be something cowfish can not deal with very well) or file position (which should not be to complicated to implement)?

Regards,

Thomas

home of the cowfish: http://sourceforge.net/projects/cowfishserver
Find all posts by this user
Quote this message in a reply
03-27-2008, 04:04 PM
Post: #3
RE: Cowfish as full UPnP AV server
Hi tst,

An UPnP Server is very simple: Each "media" is mapped as a file in a tree structure over a HTTP server. The UPnP extra functionality is for service discovery, media indexing, directory listing, and simple control (play, stop, pause, rewind...) From the point of view of an UPnP Client, when you discover a new server, you ask for "description.xml" that describes the server capabilites, and after you asks for media list. In fact, all requests are pure HTTP request for a file. You only need to map real files to the tree. Several simple UPnP servers hardcode some description files, generate the index in XML with the contect of the shared directory, and only serve HTTP requests to "virtual" files. This is the work done by the CyberlinkMediaGate, and if you only populate the tree of real files with your content (virtual in case of Cowfish), the client can recover the correct content.

It's very simple at all!

More notes: One way can be modify the CyberlinkMediaGate (full source available) and do an entry point inside the classes on "org\cybergarage\upnp\media\server\directory" package. Here are two diferent classes for real files in the filesystem, and "virtuals" from a MythTV database. Creating a new subclass with the basis of mythtv access, and using the same code from Cowfish, I think that wi'll be very easy to "export" the content from the M740AV through the HTTP server of the CyberlinkMediaGate. After this initial integration, the second step is eliminate the duplicity of the two web servers.
Find all posts by this user
Quote this message in a reply
03-27-2008, 04:12 PM
Post: #4
RE: Cowfish as full UPnP AV server
tst Wrote:Does the clients use time-tags/time-code (that would be something cowfish can not deal with very well) or file position (which should not be to complicated to implement)?
Easy response: UPnP uses HTTP range requests for serving content. It's the responsability of the Control-Point and the Renderer to "calculate" time-position to file-range. The server ONLY serves bytes... never more, never less. The real responsability of the server is indexing and serving.

Moreover: If you hack an UPnP Server to serve "proxy" content, you can serve directly the media served by the Cowfish. The work is only create the index, bacause the client (the Renderer) only requests a byte-range over an URL (the one specified in the content.xml), and Cowfish serves now mpeg files over URL!
Find all posts by this user
Quote this message in a reply
04-11-2008, 12:29 PM
Post: #5
RE: Cowfish as full UPnP AV server
Hi tst,

Any news on this? Are you doing some initial testing about "map" your "virtual" mpg files over a UPnP server?
Find all posts by this user
Quote this message in a reply
12-10-2012, 10:57 AM
Post: #6
RE: Cowfish as full UPnP AV server
hello admin nice forum . i am a new user and i will be actively participating .. Cool

Our excellent online 74-697 training programs will www.haifa.ac.il lead you to success in the We also offer latest passguide and with 100% success guarantee. Our www.principiacollege.edu is rare in IT world.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Cowfish-Config DerMichael 2 4.934 01-01-2007 08:14 PM
Last Post: DerMichael

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | open7x0.org Homepage | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication