The Free Software Media System - Server Backend & API
fix upnp with vlc android
Luke Pulverentib1f604b5e741
diff --git a/MediaBrowser.Dlna/Main/DlnaEntryPoint.cs b/MediaBrowser.Dlna/Main/DlnaEntryPoint.csindex f1eeb0a0a3..277f80b478 100644--- a/MediaBrowser.Dlna/Main/DlnaEntryPoint.cs+++ b/MediaBrowser.Dlna/Main/DlnaEntryPoint.cs@@ -242,7 +242,7 @@ namespace MediaBrowser.Dlna.Mainvar addressString = address.ToString();- var udn = (addressString).GetMD5().ToString("N");+ var udn = CreateUuid(addressString);var fullService = "urn:schemas-upnp-org:device:MediaServer:1";@@ -289,6 +289,11 @@ namespace MediaBrowser.Dlna.Main}}+ private string CreateUuid(string text)+ {+ return text.GetMD5().ToString("N");+ }+private void SetProperies(SsdpDevice device, string fullDeviceType){var service = fullDeviceType.Replace("urn:", string.Empty).Replace(":1", string.Empty);diff --git a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.csindex 0939d1c6b2..214bb87169 100644--- a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs+++ b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs@@ -1021,7 +1021,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV{var stream = new MediaSourceInfo{- Path = _appHost.GetLocalApiUrl("localhost") + "/LiveTv/LiveRecordings/" + recordingId + "/stream",+ Path = _appHost.GetLocalApiUrl("127.0.0.1") + "/LiveTv/LiveRecordings/" + recordingId + "/stream",Id = recordingId,SupportsDirectPlay = false,SupportsDirectStream = true,diff --git a/MediaBrowser.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunLiveStream.cs b/MediaBrowser.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunLiveStream.csindex 60222415c0..91f0ee832f 100644--- a/MediaBrowser.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunLiveStream.cs+++ b/MediaBrowser.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunLiveStream.cs@@ -60,7 +60,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.HdHomerun//OpenedMediaSource.Path = tempFile;//OpenedMediaSource.ReadAtNativeFramerate = true;- OpenedMediaSource.Path = _appHost.GetLocalApiUrl("localhost") + "/LiveTv/LiveStreamFiles/" + UniqueId + "/stream.ts";+ OpenedMediaSource.Path = _appHost.GetLocalApiUrl("127.0.0.1") + "/LiveTv/LiveStreamFiles/" + UniqueId + "/stream.ts";OpenedMediaSource.Protocol = MediaProtocol.Http;OpenedMediaSource.SupportsDirectPlay = false;OpenedMediaSource.SupportsDirectStream = true;