Parcourir la source

add xbox one workaround

Luke Pulverenti il y a 7 ans
Parent
commit
3a1efe9edc
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      Emby.Dlna/PlayTo/PlayToManager.cs

+ 4 - 1
Emby.Dlna/PlayTo/PlayToManager.cs

@@ -194,7 +194,10 @@ namespace Emby.Dlna.PlayTo
                             GeneralCommandType.SetSubtitleStreamIndex.ToString()
                         },
 
-                        SupportsMediaControl = true
+                        SupportsMediaControl = true,
+
+                        // xbox one creates a new uuid everytime it restarts
+                        SupportsPersistentIdentifier = (device.Properties.ModelName ?? string.Empty).IndexOf("xbox", StringComparison.OrdinalIgnoreCase) == -1
                     });
 
                     _logger.Info("DLNA Session created for {0} - {1}", device.Properties.Name, device.Properties.ModelName);