Class MediaStreamSelector
Inheritance
System.Object
MediaStreamSelector
Namespace: MediaBrowser.Model.Dlna
Assembly: MediaBrowser.Model.dll
Syntax
public static class MediaStreamSelector
Methods
GetDefaultAudioStreamIndex(List<MediaStream>, CultureDto[], Boolean, MediaSourceInfo, DeviceProfile, ILocalizationManager)
Declaration
public static int? GetDefaultAudioStreamIndex(List<MediaStream> streams, CultureDto[] preferredLanguages, bool preferDefaultTrack, MediaSourceInfo mediaSource, DeviceProfile deviceProfile, ILocalizationManager localizationManager)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<MediaStream> | streams | |
CultureDto[] | preferredLanguages | |
System.Boolean | preferDefaultTrack | |
MediaSourceInfo | mediaSource | |
DeviceProfile | deviceProfile | |
ILocalizationManager | localizationManager |
Returns
Type | Description |
---|---|
System.Nullable<System.Int32> |
GetDefaultSubtitleStream(List<MediaStream>, CultureDto[], SubtitlePlaybackMode, Boolean, CultureDto, SubtitleProfile[], ILocalizationManager)
Declaration
public static MediaStream GetDefaultSubtitleStream(List<MediaStream> streams, CultureDto[] preferredLanguages, SubtitlePlaybackMode mode, bool rememberSubtitleSelections, CultureDto audioTrackLanguage, SubtitleProfile[] subtitleProfiles, ILocalizationManager localizationManager)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<MediaStream> | streams | |
CultureDto[] | preferredLanguages | |
SubtitlePlaybackMode | mode | |
System.Boolean | rememberSubtitleSelections | |
CultureDto | audioTrackLanguage | |
SubtitleProfile[] | subtitleProfiles | |
ILocalizationManager | localizationManager |
Returns
Type | Description |
---|---|
MediaStream |