LMS with Andy Grundman UPnP/DLNA plugin seems to work very well with my
Roku. I'm not sure why I haven't tried it before now. I'm trying to
tweak it so when browsing by video folder, the default folder icon in
the Roku Media Player app is replaced with movie artwork. For the sake
of a simple setup, I'd like to just have a video folder and then a bunch
of sub-folders, one movie or series per sub-folder and a folder.jpg file
in the sub-folder to use as the folder icon in the Roku interface.
I did a small edit to Slim/Plugin/UPnP/MediaServer/ContentDirectory.pm
and added the upnp:albumArtURI as seen below, using imageproxy to fetch
and resize the folder.jpg file. Hacky, but it's working just fine.
I've tested it on the Roku and on VLC on my Android phone. The
${foldername} bit below works but I've got the rest of the path hard
coded (/srv/video-test/). Is there some other variable or combination I
can use to represent the full path so I can get rid of the hard coded
part of the path?
Or a better approach altogether? And no, I don't want to use Plex.
Code:
--------------------
if ( $type eq 'folder' ) {
my $fid = $flag eq 'BrowseMetadata' ? $id : '/vf/' . xmlEscape($item->{id});
my $foldername = xmlEscape($item->{filename});
$xml .= qq{<container id="${fid}" parentID="${parent}" restricted="1">}
. '<upnp:class>object.container.storageFolder</upnp:class>'
. '<dc:title>' . $foldername . '</dc:title>'
. '<upnp:albumArtURI>'
.
absURL("/imageproxy/file%3A%2F%2F%2Fsrv%2Fvideo-test%2F${foldername}%2Ffolder.jpg/image_160x160_f.jpg",
$request_addr)
. '</upnp:albumArtURI>'
. '</container>';
}
--------------------
------------------------------------------------------------------------
sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=112196
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter