Re: [vdr] UPnP/DLNA media server plugin for the VDR

2013-01-05 Thread Mika Laitio
On 01/04/2013 07:48 PM, Brian-Imap wrote:
 Hi,
 this looks to be pretty interesting.
 So where exactly does it fit in between XVDR, VNSI, streamdev, etc.
 
 I just bought a Samsung smart TV, haven't found a single DLNA
 music server that it could receive music from (sure I've heard about
 updating the headers that are sent from the server), still none of them
 worked with the TV.
 Seems I could watch VDR directly on the TV without any kind of Set-Top
 box inbetween with this plugin.

Samung has some bug's in their handling of upnp messages and therefore a
MediaTomp requires for example a small patch so that samsung tv is able
to show the media listing and play the recordings.

I patched the Mageia's mediatomb-0.12.1-4.mga2.src.rpm version with the
attached patch (found somewhere from the net) and at least Samsung 6305
with newest software works now ok with mediatomb.

Mika
diff -ruN mediatomb.orig/tombupnp/upnp/src/genlib/net/uri/uri.c mediatomb/tombupnp/upnp/src/genlib/net/uri/uri.c
--- mediatomb.orig/tombupnp/upnp/src/genlib/net/uri/uri.c	2012-06-06 23:01:22.0 +0200
+++ mediatomb/tombupnp/upnp/src/genlib/net/uri/uri.c	2012-06-07 08:22:01.0 +0200
@@ -1042,7 +1042,8 @@
 out-path_type = REL_PATH;
 }
 
-if( ( ( begin_hostport + 1 )  max )  ( in[begin_hostport] == '/' )
+//parse hostport only if scheme was found
+if( ( begin_hostport  0 )  ( ( begin_hostport + 1 )  max )  ( in[begin_hostport] == '/' )
  ( in[begin_hostport + 1] == '/' ) ) {
 begin_hostport += 2;
 
@@ -1059,6 +1060,12 @@
 out-hostport.text.size = 0;
 out-hostport.text.buff = 0;
 begin_path = begin_hostport;
+
+//remove excessive leading slashes (fix for Samsung Smart TV 2012)
+while( ( ( begin_path + 1 )  max )  ( in[begin_path] == '/' )  ( in[begin_path + 1] == '/') ) {
+begin_path++;
+}
+
 }
 
 begin_fragment =
___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] UPnP/DLNA media server plugin for the VDR

2013-01-04 Thread Denis Loh

Am 04.01.2013 18:48, schrieb Brian-Imap:

Hi,
this looks to be pretty interesting.
So where exactly does it fit in between XVDR, VNSI, streamdev, etc.
XVDR and VNSI are primarily used by XBMC to watch live-tv and 
recordings. VOMP is used by Hauppauge and Raspberry products.


Streamdev is more or less the only plugin which is independent from any 
devices using it. This is why it is used by the UPnP plugin for live tv 
and later for recordings as well.


I just bought a Samsung smart TV, haven't found a single DLNA
music server that it could receive music from (sure I've heard about 
updating the headers that are sent from the server), still none of 
them worked with the TV.
Seems I could watch VDR directly on the TV without any kind of Set-Top 
box inbetween with this plugin.

Yes, exactly. I have two Samsung TVs. So, it should work.


Cheers Brian

Cheers Denis


___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr



___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr