Quantcast
Channel: Squeezebox : Community : Forums - Deutsch
Viewing all articles
Browse latest Browse all 807

LMS 7.9.0 und Samsung TV

$
0
0
Hallo Forum,

mit meinem Samsung TV (UE40D6500) konnte ich per DLNA bisher nicht auf Mediendateien des LMS (7.9.0) zugreifen.
Der Inhalt der Verzeichnisse war zwar sichtbar, aber bei Auswahl eines jpg, mp3 oder mkv kam eine Fehlermeldung vom TV: "nicht unterstütztes Dateiformat"
Beim googlen hab ich das hier bei Mediatomb gefunden:

<custom-http-headers>
<add header="transferMode.dlna.org: Streaming"/>
<add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=017000 00000000000000000000000000"/>
</custom-http-headers>
Change <protocolInfo extend="yes"/> to say "yes"; it says "no" when it is installed.
Under <mappings>, add <map from="avi" to="video/mpeg"/> and <map from="mkv" to="video/mpeg"/>

Ich habe mir erlaubt, mal in den LMS Quellen rumzuändern, ohne wirklich einen Plan von perl zu haben.
Mit folgender Änderung funktionieren bei mir zumindest mp3,jpg und mkv Dateien:

#diff a/HTTP.pm b/HTTP.pm
389a390,395
>
> # need for Samsung TV (UE40D6500) for accessing .jpg and .mp3 files
> $response->header( 'transferMode.dlna.org' => 'Streaming');
> $response->header( 'ContentFeatures.dlna.org' => 'DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=ED100 000000000000000000000000000');
>
>
985a992,994
>
>
>
2881,2882c2890,2897
<
< Slim::Web::HTTP::sendStreamingFile( $httpClient, $response, $video->{mime_type}, Slim::Utils::Misc::pathFromFileURL($video->{url}), $video );
---
>
> #map .mkv (video/x-matroska) to video/mpeg for Samsung TV UE40D6500
> if( $video->{mime_type} eq 'video/x-matroska' )
> {
> $video->{mime_type} = 'video/mpeg';
> }
>
> Slim::Web::HTTP::sendStreamingFile( $httpClient, $response, $video->{mime_type}, Slim::Utils::Misc::pathFromFileURL($video->{url}), $video );


Das ist aber sicher nicht die feine Art, gerätespezifische Dinge abzufangen. An welche Stelle im Code könnte man das besser lösen?

Grüße,
Norbert

Viewing all articles
Browse latest Browse all 807

Trending Articles