diff options
Diffstat (limited to 'MediaBrowser.Server.Implementations/Sync/AppSyncProvider.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Sync/AppSyncProvider.cs | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/MediaBrowser.Server.Implementations/Sync/AppSyncProvider.cs b/MediaBrowser.Server.Implementations/Sync/AppSyncProvider.cs index c86549cb3..e4361ed1a 100644 --- a/MediaBrowser.Server.Implementations/Sync/AppSyncProvider.cs +++ b/MediaBrowser.Server.Implementations/Sync/AppSyncProvider.cs @@ -32,12 +32,12 @@ namespace MediaBrowser.Server.Implementations.Sync }); } - public DeviceProfile GetDeviceProfile(SyncTarget target, string quality) + public DeviceProfile GetDeviceProfile(SyncTarget target, string profile, string quality) { var caps = _deviceManager.GetCapabilities(target.Id); - var profile = caps == null || caps.DeviceProfile == null ? new DeviceProfile() : caps.DeviceProfile; - var maxBitrate = profile.MaxStaticBitrate; + var deviceProfile = caps == null || caps.DeviceProfile == null ? new DeviceProfile() : caps.DeviceProfile; + var maxBitrate = deviceProfile.MaxStaticBitrate; if (maxBitrate.HasValue) { @@ -50,10 +50,10 @@ namespace MediaBrowser.Server.Implementations.Sync maxBitrate = Convert.ToInt32(maxBitrate.Value * .5); } - profile.MaxStaticBitrate = maxBitrate; + deviceProfile.MaxStaticBitrate = maxBitrate; } - return profile; + return deviceProfile; } public string Name @@ -101,5 +101,10 @@ namespace MediaBrowser.Server.Implementations.Sync } }; } + + public IEnumerable<SyncQualityOption> GetProfileOptions(SyncTarget target) + { + return new List<SyncQualityOption>(); + } } } |
