aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/BaseStreamingService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
-rw-r--r--MediaBrowser.Api/Playback/BaseStreamingService.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs
index 37d8d2520..34ff64e83 100644
--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs
+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs
@@ -809,6 +809,11 @@ namespace MediaBrowser.Api.Playback
/// <returns>System.String.</returns>
protected string GetUserAgent(string path)
{
+ if (string.IsNullOrEmpty(path))
+ {
+ throw new ArgumentNullException("path");
+
+ }
if (path.IndexOf("apple.com", StringComparison.OrdinalIgnoreCase) != -1)
{
return "QuickTime/7.7.4";
@@ -892,6 +897,9 @@ namespace MediaBrowser.Api.Playback
{
item = DtoService.GetItemByDtoId(request.Id);
+ state.MediaPath = item.Path;
+ state.IsRemote = item.LocationType == LocationType.Remote;
+
var video = item as Video;
if (video != null)