Class StreamBase
Inheritance
Implements
Namespace: Emby.Media.Model.Streams
Assembly: Emby.Media.Model.dll
Syntax
public abstract class StreamBase : ICloneable
Constructors
StreamBase(StreamBase)
Initializes a new instance of the StreamBase class.
Declaration
protected StreamBase(StreamBase source)
Parameters
Type | Name | Description |
---|---|---|
StreamBase | source | The source. |
Remarks
Copy constructor.
StreamBase(MediaStreamType, MediaStream)
Initializes a new instance of the StreamBase class.
Declaration
protected StreamBase(MediaStreamType streamType, MediaStream originalStream)
Parameters
Type | Name | Description |
---|---|---|
MediaStreamType | streamType | Type of the stream. |
MediaStream | originalStream | The original stream. |
Properties
AllTags
Gets or sets all tags.
Declaration
[Display(Name = "All Tags", Description = "All tags of the media stream")]
public MediaTagList AllTags { get; set; }
Property Value
Type | Description |
---|---|
MediaTagList | All tags. |
CodecName
Declaration
[Display(Name = "Codec", Description = "Name of the stream Codec")]
public abstract string CodecName { get; }
Property Value
Type | Description |
---|---|
System.String |
CodecTag
Declaration
[Display(Name = "Codec Tag", Description = "4CC codec tag string")]
public string CodecTag { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CodecTimeBase
Declaration
[Browsable(false)]
[Obsolete("ffprobe doeesn't provide this anymore.")]
[Display(Name = "Codec Time Base", Description = "The codec time base")]
public Rational? CodecTimeBase { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Rational> |
Comment
Gets or sets the comment.
Declaration
[Display(Name = "Comment", Description = "Value of the comment tag")]
public string Comment { get; set; }
Property Value
Type | Description |
---|---|
System.String | The comment. |
DisplayTitle
Declaration
public string DisplayTitle { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Duration
Declaration
[Display(Name = "Duration", Description = "The duration of the stream")]
public TimeSpan? Duration { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.TimeSpan> |
DurationTs
Declaration
[Display(Name = "Duration PTS", Description = "The duration in PTS (Presentation Time Stamp)")]
public long? DurationTs { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
Id
Gets or sets the identifier.
Declaration
[Display(Name = "ID", Description = "Stream ID")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String | The identifier. |
Index
Gets or sets the index.
Declaration
[Display(Name = "Index", Description = "Index of the stream in the container")]
public int Index { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The index. |
IsDefault
Gets or sets a value indicating whether this instance is default.
Declaration
[Display(Name = "Is Default", Description = "Indicates the default stream")]
public bool IsDefault { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsExternal
Gets or sets a value indicating whether this stream is external.
Declaration
[Browsable(false)]
public bool IsExternal { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsForced
Gets or sets a value indicating whether this instance is forced.
Declaration
[Display(Name = "Is Forced", Description = "Indicates whether the stream should be forced")]
public bool IsForced { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsHearingImpaired
Declaration
[Display(Name = "Is Hearing Impaired", Description = "Indicates whether the stream is Hearing Impaired")]
public bool IsHearingImpaired { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Language
Gets or sets the language.
Declaration
[Display(Name = "Language", Description = "Value of the language tag")]
public string Language { get; set; }
Property Value
Type | Description |
---|---|
System.String | The language. |
OriginalStream
Declaration
[Browsable(false)]
public MediaStream OriginalStream { get; }
Property Value
Type | Description |
---|---|
MediaStream |
ParsingErrors
Gets the parsing errors.
Declaration
public string ParsingErrors { get; set; }
Property Value
Type | Description |
---|---|
System.String | The parsing errors. |
Pid
Gets or sets the PID.
Declaration
[Display(Name = "PID", Description = "MPEG Program ID")]
public string Pid { get; set; }
Property Value
Type | Description |
---|---|
System.String | The PID. |
SideDataJson
Gets or sets the side data json.
Declaration
public JsonString SideDataJson { get; set; }
Property Value
Type | Description |
---|---|
JsonString | The side data json. |
StartPts
Declaration
[Display(Name = "Start PTS", Description = "The start PTS (Presentation Time Stamp)")]
public long? StartPts { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
StartTime
Declaration
[Display(Name = "Start Time", Description = "The start time of the stream")]
public TimeSpan? StartTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.TimeSpan> |
StreamType
Declaration
[Display(Name = "Stream Type", Description = "Type of the stream")]
public MediaStreamType StreamType { get; }
Property Value
Type | Description |
---|---|
MediaStreamType |
TimeBase
Declaration
[Display(Name = "Stream Time Base", Description = "The time base of the stream")]
public Rational? TimeBase { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Rational> |
Title
Gets or sets the title.
Declaration
[Display(Name = "Title", Description = "Value of the title tag")]
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String | The title. |
Methods
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | A new object that is a copy of this instance. |
CloneCore()
Declaration
protected abstract StreamBase CloneCore()
Returns
Type | Description |
---|---|
StreamBase |
GetShortDescription()
Gets a short description.
Declaration
public virtual string GetShortDescription()
Returns
Type | Description |
---|---|
System.String | A string. |
GetShortDescriptionBits()
Gets a short description.
Declaration
public abstract List<string> GetShortDescriptionBits()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.String> | A string. |