C# Class MediaPortal.Player.Subtitles.SubtitleSelector

Mostrar archivo Open project: MediaPortal/MediaPortal-1 Class Usage Examples

Public Methods

Method 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

Method 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 method

public CountOptions ( ) : int
return int

GetCurrentLanguage() public method

public GetCurrentLanguage ( ) : string
return string

GetCurrentOption() public method

public GetCurrentOption ( ) : int
return int

GetLanguage() public method

public GetLanguage ( int option ) : string
option int
return string

SetOption() public method

Call only on MP main thread
public SetOption ( int index ) : void
index int
return void

SubtitleSelector() public method

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