C# Class OnlineVideos.MediaPortal1.Player.OnlineVideosPlayer

Inheritance: MediaPortal.Player.VideoPlayerVMR9, OVSPLayer
Mostra file Open project: offbyoneBB/mp-onlinevideos2

Public Properties

Property Type Description
MEDIASUBTYPE_AVC1 System.Guid

Protected Properties

Property Type Description
skipBuffering bool

Public Methods

Method 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

Protected Methods

Method Description
GetInterfaces ( ) : bool

Private Methods

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

public static AddPreferredFilters ( IGraphBuilder graphBuilder, IBaseFilter sourceFilter ) : void
graphBuilder IGraphBuilder
sourceFilter IBaseFilter
return void

BufferFile() public method

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
return bool

Dispose() public method

public Dispose ( ) : void
return void

GetInterfaces() protected method

protected GetInterfaces ( ) : bool
return bool

GetSourceFilterName() public static method

public static GetSourceFilterName ( string videoUrl ) : string
videoUrl string
return string

LogOutputPinsConnectionRecursive() public static method

public static LogOutputPinsConnectionRecursive ( IBaseFilter filter, string previous = "" ) : void
filter IBaseFilter
previous string
return void

OnlineVideosPlayer() public method

public OnlineVideosPlayer ( ) : System
return System

OnlineVideosPlayer() public method

public OnlineVideosPlayer ( g_Player type ) : System
type MediaPortal.Player.g_Player
return System

OnlineVideosPlayer() public method

public OnlineVideosPlayer ( string url ) : System
url string
return System

Play() public method

public Play ( string strFile ) : bool
strFile string
return bool

PrepareGraph() public method

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?
return bool?

Process() public method

public Process ( ) : void
return void

SkipBuffering() public method

public SkipBuffering ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

StopBuffering() public method

public StopBuffering ( ) : void
return void

Property Details

MEDIASUBTYPE_AVC1 public_oe static_oe property

public static Guid,System MEDIASUBTYPE_AVC1
return System.Guid

skipBuffering protected_oe property

protected bool skipBuffering
return bool