C# Class MediaPortal.Player.Subtitles.SubtitleSelector

Afficher le fichier Open project: MediaPortal/MediaPortal-1 Class Usage Examples

Méthodes publiques

Méthode Description
CountOptions ( ) : int
GetCurrentLanguage ( ) : string
GetCurrentOption ( ) : int
GetLanguage ( int option ) : string
SetOption ( int index ) : void

Call only on MP main thread

SubtitleSelector ( TSReaderPlayer dvbStreams, SubtitleRenderer subRender, MediaPortal.Player.Subtitles.TeletextSubtitleDecoder subDecoder ) : System

Private Methods

Méthode Description
CheckForPreferedLanguage ( ) : SubtitleOption

Attempts to auto choose a subtitle option based on the prefered languages

CollectOptions ( ) : List
OnPageInfo ( TeletextPageEntry entry ) : void
OnSubtitleReset ( int count, IntPtr pOpts, int &selected_bitmap_index ) : int
RetrieveBitmapSubtitles ( ) : void

Method Details

CountOptions() public méthode

public CountOptions ( ) : int
Résultat int

GetCurrentLanguage() public méthode

public GetCurrentLanguage ( ) : string
Résultat string

GetCurrentOption() public méthode

public GetCurrentOption ( ) : int
Résultat int

GetLanguage() public méthode

public GetLanguage ( int option ) : string
option int
Résultat string

SetOption() public méthode

Call only on MP main thread
public SetOption ( int index ) : void
index int
Résultat void

SubtitleSelector() public méthode

public SubtitleSelector ( TSReaderPlayer dvbStreams, SubtitleRenderer subRender, MediaPortal.Player.Subtitles.TeletextSubtitleDecoder subDecoder ) : System
dvbStreams TSReaderPlayer
subRender SubtitleRenderer
subDecoder MediaPortal.Player.Subtitles.TeletextSubtitleDecoder
Résultat System