From 890b011f5e5d6790eeaf5901f9919c758f2d6b6b Mon Sep 17 00:00:00 2001 From: 7illusions Date: Wed, 5 Feb 2014 07:51:28 +0100 Subject: [PATCH] Update BaseProgressiveStreamingService.cs Added contentFeatures for mkv and mp4 --- .../BaseProgressiveStreamingService.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs b/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs index 7924b57d8b..708e85d4d5 100644 --- a/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs +++ b/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs @@ -136,10 +136,14 @@ namespace MediaBrowser.Api.Playback.Progressive { contentFeatures = "DLNA.ORG_PN=AVI"; } - //else if (string.Equals(extension, ".mp4", StringComparison.OrdinalIgnoreCase)) - //{ - // contentFeatures = "DLNA.ORG_PN=MPEG4_P2_SP_AAC"; - //} + else if (string.Equals(extension, ".mkv", StringComparison.OrdinalIgnoreCase)) + { + contentFeatures = "DLNA.ORG_PN=MATROSKA"; + } + else if (string.Equals(extension, ".mp4", StringComparison.OrdinalIgnoreCase)) + { + contentFeatures = "DLNA.ORG_PN=AVC_MP4_MP_HD_720p_AAC"; + } //else if (string.Equals(extension, ".mpeg", StringComparison.OrdinalIgnoreCase)) //{ // contentFeatures = "DLNA.ORG_PN=MPEG_PS_PAL"; @@ -153,11 +157,7 @@ namespace MediaBrowser.Api.Playback.Progressive // // ?? // contentFeatures = "DLNA.ORG_PN=WMVHIGH_BASE"; //} - //else if (string.Equals(extension, ".mkv", StringComparison.OrdinalIgnoreCase)) - //{ - // // ?? - // contentFeatures = ""; - //} + if (!string.IsNullOrEmpty(contentFeatures)) {