Class MediaSourceInfo
  
  
  
  
    Inheritance
    System.Object
    MediaSourceInfo
      
   
  
  Assembly: MediaBrowser.Model.dll
  
  
    public class MediaSourceInfo
   
  Constructors
  
  
  
  
  
  
  
  Declaration
  
  
  
  
  
  
  
  Declaration
  
    public MediaSourceInfo(MediaSourceInfo clone)
   
  Parameters
  
  Properties
  
  
  
  
  
  
  
  Declaration
  
    public bool AddApiKeyToDirectStreamUrl { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    [Obsolete]
public int? AnalyzeDurationMs { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Nullable<System.Int32> | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public int? Bitrate { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Nullable<System.Int32> | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    [Obsolete]
public int? BufferMs { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Nullable<System.Int32> | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public ChapterInfo[] Chapters { get; set; }
   
  Property Value
  
  
  
  
  
  
  
  Declaration
  
    public string Container { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public long? ContainerStartTimeTicks { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Nullable<System.Int64> | 
         | 
      
    
  
  
  
  
  
  Internal use only. Temporary
 
  
  Declaration
  
    [IgnoreDataMember]
public object Controller { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Object | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    [IgnoreDataMember]
public MediaStream DefaultAudioStream { get; }
   
  Property Value
  
  
  
  
  
  
  
  Declaration
  
    public int? DefaultAudioStreamIndex { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Nullable<System.Int32> | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public int? DefaultSubtitleStreamIndex { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Nullable<System.Int32> | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public string DirectStreamUrl { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public string EncoderPath { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public MediaProtocol? EncoderProtocol { get; set; }
   
  Property Value
  
  
  
  
  
  
  
  Declaration
  
    public string[] Formats { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String[] | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public bool HasMixedProtocols { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public string Id { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public bool IsInfiniteStream { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  
  Differentiate internet url vs local network
 
  
  Declaration
  
    public bool IsRemote { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  
  Used only by our Windows app. Not used by Emby Server.
The id of the item that this mediasource belongs to, if there is one
Also used by Emby for Kodi
 
  
  Declaration
  
    public string ItemId { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public string LiveStreamId { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public List<MediaStream> MediaStreams { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Collections.Generic.List<MediaStream> | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public string Name { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public string OpenToken { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public string Path { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public string ProbePath { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public MediaProtocol? ProbeProtocol { get; set; }
   
  Property Value
  
  
  
  
  
  
  
  Declaration
  
    public MediaProtocol Protocol { get; set; }
   
  Property Value
  
  
  
  
  
  
  
  Declaration
  
    [Obsolete]
public bool ReadAtNativeFramerate { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public Dictionary<string, string> RequiredHttpHeaders { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Collections.Generic.Dictionary<System.String, System.String> | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public bool RequiresClosing { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public bool RequiresLooping { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public bool RequiresOpening { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public long? RunTimeTicks { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Nullable<System.Int64> | 
         | 
      
    
  
  
  
  
  
  Used only by our Windows app. Not used by Emby Server.
 
  
  Declaration
  
    public string ServerId { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public long? Size { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Nullable<System.Int64> | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public string SortName { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public bool SupportsDirectPlay { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public bool SupportsDirectStream { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    [Obsolete]
public bool SupportsProbing { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public bool SupportsTranscoding { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public TransportStreamTimestamp? Timestamp { get; set; }
   
  Property Value
  
  
  
  
  
  
  
  Declaration
  
    public int? TrancodeLiveStartIndex { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Nullable<System.Int32> | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    [IgnoreDataMember]
public TranscodeReason[] TranscodeReasons { get; set; }
   
  Property Value
  
  
  
  
  
  
  
  Declaration
  
    public string TranscodingContainer { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public string TranscodingSubProtocol { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public string TranscodingUrl { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public MediaSourceType Type { get; set; }
   
  Property Value
  
  
  
  
  
  
  
  Declaration
  
    public Video3DFormat? Video3DFormat { get; set; }
   
  Property Value
  
  
  
  
  
  
  
  Declaration
  
    [IgnoreDataMember]
public MediaStream VideoStream { get; }
   
  Property Value
  
  
  
  
  
  
  
  Declaration
  
    public DateTimeOffset? WallClockStart { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Nullable<System.DateTimeOffset> | 
         | 
      
    
  
  Methods
  
  
  
  
  
  
  
  Declaration
  
    public MediaStream GetDefaultAudioStream(int? defaultIndex)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Nullable<System.Int32> | 
        defaultIndex | 
         | 
      
    
  
  Returns
  
  
  
  
  
  
  
  Declaration
  
    public MediaStream GetDefaultVideoStream(int? defaultIndex)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Nullable<System.Int32> | 
        defaultIndex | 
         | 
      
    
  
  Returns
  
  
  
  
  
  
  
  Declaration
  
    public MediaStream GetMediaStream(MediaStreamType type, int index)
   
  Parameters
  
  Returns
  
  
  
  
  
  
  
  Declaration
  
    public List<MediaStream> GetMediaStreams(MediaStreamType type)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Collections.Generic.List<MediaStream> | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public int? GetStreamCount(MediaStreamType type)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Nullable<System.Int32> | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public void InferTotalBitrate(bool force = false)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Boolean | 
        force | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public bool? IsSecondaryAudio(MediaStream stream)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Nullable<System.Boolean> | 
         | 
      
    
  
  
  
  
  
  Returns a string that represents the current object.
 
  
  Declaration
  
    public override string ToString()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
        A string that represents the current object. 
 | 
      
    
  
  Overrides
  System.Object.ToString()
  Extension Methods