C# Class OnlineVideos.MediaPortal1.Player.OnlineVideosPlayer

Inheritance: MediaPortal.Player.VideoPlayerVMR9, OVSPLayer
Afficher le fichier Open project: offbyoneBB/mp-onlinevideos2

Méthodes publiques

Свойство Type Description
MEDIASUBTYPE_AVC1 System.Guid

Protected Properties

Свойство Type Description
skipBuffering bool

Méthodes publiques

Méthode Description
AddPreferredFilters ( IGraphBuilder graphBuilder, IBaseFilter sourceFilter ) : void
BufferFile ( Sites siteUtil ) : bool

This function can be called by a background thread. It finishes building the graph and waits until the buffer is filled to the configured percentage. If a filter in the graph requires the full file to be downloaded, the function will return only afterwards.

Dispose ( ) : void
GetSourceFilterName ( string videoUrl ) : string
LogOutputPinsConnectionRecursive ( IBaseFilter filter, string previous = "" ) : void
OnlineVideosPlayer ( ) : System
OnlineVideosPlayer ( g_Player type ) : System
OnlineVideosPlayer ( string url ) : System
Play ( string strFile ) : bool
PrepareGraph ( ) : bool?

If the url to be played can be buffered before starting playback, this function starts building a graph by adding the preferred video and audio render to it. This needs to be called on the MpMain Thread.

Process ( ) : void
SkipBuffering ( ) : void
Stop ( ) : void
StopBuffering ( ) : void

Méthodes protégées

Méthode Description
GetInterfaces ( ) : bool

Private Methods

Méthode Description
AdaptRefreshRateFromCacheFile ( ) : void
AdaptRefreshRateFromVideoRenderer ( ) : void
EVRGetVideoFPS ( int fpsSource ) : double
EVRUpdateDisplayFPS ( ) : void
FinishPreparedGraph ( ) : bool

Third and last step of a graph build with the file source url filter used to monitor buffer. Needs to be called on the MpMain Thread.

Method Details

AddPreferredFilters() public static méthode

public static AddPreferredFilters ( IGraphBuilder graphBuilder, IBaseFilter sourceFilter ) : void
graphBuilder IGraphBuilder
sourceFilter IBaseFilter
Résultat void

BufferFile() public méthode

This function can be called by a background thread. It finishes building the graph and waits until the buffer is filled to the configured percentage. If a filter in the graph requires the full file to be downloaded, the function will return only afterwards.
public BufferFile ( Sites siteUtil ) : bool
siteUtil Sites
Résultat bool

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetInterfaces() protected méthode

protected GetInterfaces ( ) : bool
Résultat bool

GetSourceFilterName() public static méthode

public static GetSourceFilterName ( string videoUrl ) : string
videoUrl string
Résultat string

LogOutputPinsConnectionRecursive() public static méthode

public static LogOutputPinsConnectionRecursive ( IBaseFilter filter, string previous = "" ) : void
filter IBaseFilter
previous string
Résultat void

OnlineVideosPlayer() public méthode

public OnlineVideosPlayer ( ) : System
Résultat System

OnlineVideosPlayer() public méthode

public OnlineVideosPlayer ( g_Player type ) : System
type MediaPortal.Player.g_Player
Résultat System

OnlineVideosPlayer() public méthode

public OnlineVideosPlayer ( string url ) : System
url string
Résultat System

Play() public méthode

public Play ( string strFile ) : bool
strFile string
Résultat bool

PrepareGraph() public méthode

If the url to be played can be buffered before starting playback, this function starts building a graph by adding the preferred video and audio render to it. This needs to be called on the MpMain Thread.
public PrepareGraph ( ) : bool?
Résultat bool?

Process() public méthode

public Process ( ) : void
Résultat void

SkipBuffering() public méthode

public SkipBuffering ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

StopBuffering() public méthode

public StopBuffering ( ) : void
Résultat void

Property Details

MEDIASUBTYPE_AVC1 public_oe static_oe property

public static Guid,System MEDIASUBTYPE_AVC1
Résultat System.Guid

skipBuffering protected_oe property

protected bool skipBuffering
Résultat bool