server: More Samsung hacks
authorJohn Obaterspok <john.obaterspok@gmail.com>
Mon, 9 Dec 2013 18:41:38 +0000 (19:41 +0100)
committerJens Georg <mail@jensge.org>
Thu, 12 Dec 2013 08:20:06 +0000 (09:20 +0100)
Add Samsung [DE]-Series TV workaround for mp2t and quicktime movies

src/librygel-server/rygel-samsung-tv-hacks.vala

index 60127c5..83ea363 100644 (file)
@@ -37,6 +37,16 @@ internal class Rygel.SamsungTVHacks : ClientHacks {
         if (item.mime_type == "video/x-matroska") {
             item.mime_type = "video/x-mkv";
         }
+        else if (item.mime_type == "video/mp2t") {
+            // Required to play Panasonic TZ-7 AVCHD-Lite movies. Verified on D+E-Series TV
+            // Example: http://s3.amazonaws.com/movies.dpreview.com/panasonic_dmcfz150/00015.MTS
+            item.mime_type = "video/vnd.dlna.mpeg-tts";
+        }
+        else if (item.mime_type == "video/quicktime") {
+            // Required to play Canon EOS camera movies. Verfied on D-Series TV (E-Series still don't work)
+            // Example: http://s3.amazonaws.com/movies.dpreview.com/canon_eos60d/MVI_1326.MOV
+            item.mime_type = "video/mp4";
+        }
     }
 
     public override bool force_seek () {