mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-29 19:11:00 +01:00
fix portable and 3.5 project references
This commit is contained in:
33
MediaBrowser.Model/Dlna/AudioOptions.cs
Normal file
33
MediaBrowser.Model/Dlna/AudioOptions.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System.Collections.Generic;
|
||||
using MediaBrowser.Model.Dto;
|
||||
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
/// <summary>
|
||||
/// Class AudioOptions.
|
||||
/// </summary>
|
||||
public class AudioOptions
|
||||
{
|
||||
public string ItemId { get; set; }
|
||||
public List<MediaSourceInfo> MediaSources { get; set; }
|
||||
public DeviceProfile Profile { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Optional. Only needed if a specific AudioStreamIndex or SubtitleStreamIndex are requested.
|
||||
/// </summary>
|
||||
public string MediaSourceId { get; set; }
|
||||
|
||||
public string DeviceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Allows an override of supported number of audio channels
|
||||
/// Example: DeviceProfile supports five channel, but user only has stereo speakers
|
||||
/// </summary>
|
||||
public int? MaxAudioChannels { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The application's configured quality setting
|
||||
/// </summary>
|
||||
public int? MaxBitrate { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -32,56 +32,4 @@ namespace MediaBrowser.Model.Dlna
|
||||
return codecs.Count == 0 || codecs.Contains(codec, StringComparer.OrdinalIgnoreCase);
|
||||
}
|
||||
}
|
||||
|
||||
public enum CodecType
|
||||
{
|
||||
Video = 0,
|
||||
VideoAudio = 1,
|
||||
Audio = 2
|
||||
}
|
||||
|
||||
public class ProfileCondition
|
||||
{
|
||||
[XmlAttribute("condition")]
|
||||
public ProfileConditionType Condition { get; set; }
|
||||
|
||||
[XmlAttribute("property")]
|
||||
public ProfileConditionValue Property { get; set; }
|
||||
|
||||
[XmlAttribute("value")]
|
||||
public string Value { get; set; }
|
||||
|
||||
[XmlAttribute("isRequired")]
|
||||
public bool IsRequired { get; set; }
|
||||
|
||||
public ProfileCondition()
|
||||
{
|
||||
IsRequired = true;
|
||||
}
|
||||
}
|
||||
|
||||
public enum ProfileConditionType
|
||||
{
|
||||
Equals = 0,
|
||||
NotEquals = 1,
|
||||
LessThanEqual = 2,
|
||||
GreaterThanEqual = 3
|
||||
}
|
||||
|
||||
public enum ProfileConditionValue
|
||||
{
|
||||
AudioChannels,
|
||||
AudioBitrate,
|
||||
AudioProfile,
|
||||
Width,
|
||||
Height,
|
||||
Has64BitOffsets,
|
||||
PacketLength,
|
||||
VideoBitDepth,
|
||||
VideoBitrate,
|
||||
VideoFramerate,
|
||||
VideoLevel,
|
||||
VideoProfile,
|
||||
VideoTimestamp
|
||||
}
|
||||
}
|
||||
|
||||
9
MediaBrowser.Model/Dlna/CodecType.cs
Normal file
9
MediaBrowser.Model/Dlna/CodecType.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
public enum CodecType
|
||||
{
|
||||
Video = 0,
|
||||
VideoAudio = 1,
|
||||
Audio = 2
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
public class DeviceIdentification
|
||||
{
|
||||
@@ -60,23 +58,4 @@ namespace MediaBrowser.Model.Dlna
|
||||
Headers = new HttpHeaderInfo[] {};
|
||||
}
|
||||
}
|
||||
|
||||
public class HttpHeaderInfo
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlAttribute("value")]
|
||||
public string Value { get; set; }
|
||||
|
||||
[XmlAttribute("match")]
|
||||
public HeaderMatchType Match { get; set; }
|
||||
}
|
||||
|
||||
public enum HeaderMatchType
|
||||
{
|
||||
Equals = 0,
|
||||
Regex = 1,
|
||||
Substring = 2
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,10 +21,4 @@ namespace MediaBrowser.Model.Dlna
|
||||
/// <value>The type.</value>
|
||||
public DeviceProfileType Type { get; set; }
|
||||
}
|
||||
|
||||
public enum DeviceProfileType
|
||||
{
|
||||
System = 0,
|
||||
User = 1
|
||||
}
|
||||
}
|
||||
|
||||
8
MediaBrowser.Model/Dlna/DeviceProfileType.cs
Normal file
8
MediaBrowser.Model/Dlna/DeviceProfileType.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
public enum DeviceProfileType
|
||||
{
|
||||
System = 0,
|
||||
User = 1
|
||||
}
|
||||
}
|
||||
@@ -33,20 +33,4 @@ namespace MediaBrowser.Model.Dlna
|
||||
return (VideoCodec ?? string.Empty).Split(',').Where(i => !string.IsNullOrEmpty(i)).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
public class XmlAttribute
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlAttribute("value")]
|
||||
public string Value { get; set; }
|
||||
}
|
||||
|
||||
public enum DlnaProfileType
|
||||
{
|
||||
Audio = 0,
|
||||
Video = 1,
|
||||
Photo = 2
|
||||
}
|
||||
}
|
||||
|
||||
21
MediaBrowser.Model/Dlna/DlnaFlags.cs
Normal file
21
MediaBrowser.Model/Dlna/DlnaFlags.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
[Flags]
|
||||
public enum DlnaFlags : ulong
|
||||
{
|
||||
BackgroundTransferMode = (1 << 22),
|
||||
ByteBasedSeek = (1 << 29),
|
||||
ConnectionStall = (1 << 21),
|
||||
DlnaV15 = (1 << 20),
|
||||
InteractiveTransferMode = (1 << 23),
|
||||
PlayContainer = (1 << 28),
|
||||
RtspPause = (1 << 25),
|
||||
S0Increase = (1 << 27),
|
||||
SenderPaced = (1L << 31),
|
||||
SnIncrease = (1 << 26),
|
||||
StreamingTransferMode = (1 << 24),
|
||||
TimeBasedSeek = (1 << 30)
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
public class DlnaMaps
|
||||
{
|
||||
@@ -55,21 +53,4 @@ namespace MediaBrowser.Model.Dlna
|
||||
return orgOp;
|
||||
}
|
||||
}
|
||||
|
||||
[Flags]
|
||||
public enum DlnaFlags : ulong
|
||||
{
|
||||
BackgroundTransferMode = (1 << 22),
|
||||
ByteBasedSeek = (1 << 29),
|
||||
ConnectionStall = (1 << 21),
|
||||
DlnaV15 = (1 << 20),
|
||||
InteractiveTransferMode = (1 << 23),
|
||||
PlayContainer = (1 << 28),
|
||||
RtspPause = (1 << 25),
|
||||
S0Increase = (1 << 27),
|
||||
SenderPaced = (1L << 31),
|
||||
SnIncrease = (1 << 26),
|
||||
StreamingTransferMode = (1 << 24),
|
||||
TimeBasedSeek = (1 << 30)
|
||||
}
|
||||
}
|
||||
|
||||
9
MediaBrowser.Model/Dlna/DlnaProfileType.cs
Normal file
9
MediaBrowser.Model/Dlna/DlnaProfileType.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
public enum DlnaProfileType
|
||||
{
|
||||
Audio = 0,
|
||||
Video = 1,
|
||||
Photo = 2
|
||||
}
|
||||
}
|
||||
9
MediaBrowser.Model/Dlna/HeaderMatchType.cs
Normal file
9
MediaBrowser.Model/Dlna/HeaderMatchType.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
public enum HeaderMatchType
|
||||
{
|
||||
Equals = 0,
|
||||
Regex = 1,
|
||||
Substring = 2
|
||||
}
|
||||
}
|
||||
16
MediaBrowser.Model/Dlna/HttpHeaderInfo.cs
Normal file
16
MediaBrowser.Model/Dlna/HttpHeaderInfo.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
public class HttpHeaderInfo
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlAttribute("value")]
|
||||
public string Value { get; set; }
|
||||
|
||||
[XmlAttribute("match")]
|
||||
public HeaderMatchType Match { get; set; }
|
||||
}
|
||||
}
|
||||
24
MediaBrowser.Model/Dlna/ProfileCondition.cs
Normal file
24
MediaBrowser.Model/Dlna/ProfileCondition.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
public class ProfileCondition
|
||||
{
|
||||
[XmlAttribute("condition")]
|
||||
public ProfileConditionType Condition { get; set; }
|
||||
|
||||
[XmlAttribute("property")]
|
||||
public ProfileConditionValue Property { get; set; }
|
||||
|
||||
[XmlAttribute("value")]
|
||||
public string Value { get; set; }
|
||||
|
||||
[XmlAttribute("isRequired")]
|
||||
public bool IsRequired { get; set; }
|
||||
|
||||
public ProfileCondition()
|
||||
{
|
||||
IsRequired = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
10
MediaBrowser.Model/Dlna/ProfileConditionType.cs
Normal file
10
MediaBrowser.Model/Dlna/ProfileConditionType.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
public enum ProfileConditionType
|
||||
{
|
||||
Equals = 0,
|
||||
NotEquals = 1,
|
||||
LessThanEqual = 2,
|
||||
GreaterThanEqual = 3
|
||||
}
|
||||
}
|
||||
19
MediaBrowser.Model/Dlna/ProfileConditionValue.cs
Normal file
19
MediaBrowser.Model/Dlna/ProfileConditionValue.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
public enum ProfileConditionValue
|
||||
{
|
||||
AudioChannels,
|
||||
AudioBitrate,
|
||||
AudioProfile,
|
||||
Width,
|
||||
Height,
|
||||
Has64BitOffsets,
|
||||
PacketLength,
|
||||
VideoBitDepth,
|
||||
VideoBitrate,
|
||||
VideoFramerate,
|
||||
VideoLevel,
|
||||
VideoProfile,
|
||||
VideoTimestamp
|
||||
}
|
||||
}
|
||||
@@ -37,13 +37,4 @@ namespace MediaBrowser.Model.Dlna
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public enum SearchType
|
||||
{
|
||||
Unknown = 0,
|
||||
Audio = 1,
|
||||
Image = 2,
|
||||
Video = 3,
|
||||
Playlist = 4
|
||||
}
|
||||
}
|
||||
|
||||
11
MediaBrowser.Model/Dlna/SearchType.cs
Normal file
11
MediaBrowser.Model/Dlna/SearchType.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
public enum SearchType
|
||||
{
|
||||
Unknown = 0,
|
||||
Audio = 1,
|
||||
Image = 2,
|
||||
Video = 3,
|
||||
Playlist = 4
|
||||
}
|
||||
}
|
||||
@@ -403,47 +403,4 @@ namespace MediaBrowser.Model.Dlna
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class AudioOptions.
|
||||
/// </summary>
|
||||
public class AudioOptions
|
||||
{
|
||||
public string ItemId { get; set; }
|
||||
public List<MediaSourceInfo> MediaSources { get; set; }
|
||||
public DeviceProfile Profile { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Optional. Only needed if a specific AudioStreamIndex or SubtitleStreamIndex are requested.
|
||||
/// </summary>
|
||||
public string MediaSourceId { get; set; }
|
||||
|
||||
public string DeviceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Allows an override of supported number of audio channels
|
||||
/// Example: DeviceProfile supports five channel, but user only has stereo speakers
|
||||
/// </summary>
|
||||
public int? MaxAudioChannels { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The application's configured quality setting
|
||||
/// </summary>
|
||||
public int? MaxBitrate { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class VideoOptions.
|
||||
/// </summary>
|
||||
public class VideoOptions : AudioOptions
|
||||
{
|
||||
public int? AudioStreamIndex { get; set; }
|
||||
public int? SubtitleStreamIndex { get; set; }
|
||||
public int? MaxAudioTranscodingBitrate { get; set; }
|
||||
|
||||
public VideoOptions()
|
||||
{
|
||||
MaxAudioTranscodingBitrate = 128000;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
8
MediaBrowser.Model/Dlna/TranscodeSeekInfo.cs
Normal file
8
MediaBrowser.Model/Dlna/TranscodeSeekInfo.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
public enum TranscodeSeekInfo
|
||||
{
|
||||
Auto = 0,
|
||||
Bytes = 1
|
||||
}
|
||||
}
|
||||
@@ -38,10 +38,4 @@ namespace MediaBrowser.Model.Dlna
|
||||
return (AudioCodec ?? string.Empty).Split(',').Where(i => !string.IsNullOrEmpty(i)).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
public enum TranscodeSeekInfo
|
||||
{
|
||||
Auto = 0,
|
||||
Bytes = 1
|
||||
}
|
||||
}
|
||||
|
||||
17
MediaBrowser.Model/Dlna/VideoOptions.cs
Normal file
17
MediaBrowser.Model/Dlna/VideoOptions.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
/// <summary>
|
||||
/// Class VideoOptions.
|
||||
/// </summary>
|
||||
public class VideoOptions : AudioOptions
|
||||
{
|
||||
public int? AudioStreamIndex { get; set; }
|
||||
public int? SubtitleStreamIndex { get; set; }
|
||||
public int? MaxAudioTranscodingBitrate { get; set; }
|
||||
|
||||
public VideoOptions()
|
||||
{
|
||||
MaxAudioTranscodingBitrate = 128000;
|
||||
}
|
||||
}
|
||||
}
|
||||
13
MediaBrowser.Model/Dlna/XmlAttribute.cs
Normal file
13
MediaBrowser.Model/Dlna/XmlAttribute.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
public class XmlAttribute
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlAttribute("value")]
|
||||
public string Value { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user