C# Class MediaPortal.Player.BaseStreamBufferPlayer

Inheritance: IPlayer
Show file Open project: MediaPortal/MediaPortal-1

Protected Properties

Property Type Description
_aspectX int
_aspectY int
_audioCodecFilter IBaseFilter
_audioRendererFilter IBaseFilter
_basicAudio IBasicAudio
_basicVideo IBasicVideo2
_bufferSource IStreamBufferSource
_contentStart double
_currentFile string
_currentPos double
_duration double
_geometry Geometry.Type
_graphBuilder IGraphBuilder
_height int
_isFullscreen bool
_isLive bool
_isStarted bool
_isWindowVisible bool
_lastPosition double
_mediaCtrl IMediaControl
_mediaEvt IMediaEventEx
_mediaSeeking IStreamBufferMediaSeeking
_mediaSeeking2 IStreamBufferMediaSeeking2
_minBackingFiles int
_positionX int
_positionY int
_rotEntry DsROTEntry
_seekToBegin bool
_speed int
_speedRate long
_state PlayState
_updateNeeded bool
_updateTimer DateTime
_videoCodecFilter IBaseFilter
_videoHeight int
_videoWidth int
_videoWin IVideoWindow
_volume int
_width int
customFilters IBaseFilter[]
iSpeed int
m_StreamBufferConfig StreamBufferConfig
streamConfig2 IStreamBufferConfigure2

Public Methods

Method Description
BaseStreamBufferPlayer ( ) : System
ContinueGraph ( ) : void
Dispose ( ) : void
Pause ( ) : void
PauseGraph ( ) : void
Play ( string strFile ) : bool
Process ( ) : void
SeekAbsolute ( double dTimeInSecs ) : void
SeekAsolutePercentage ( int iPercentage ) : void
SeekRelative ( double dTime ) : void
SeekRelativePercentage ( int iPercentage ) : void
SetVideoWindow ( ) : void
Stop ( ) : void
WndProc ( Message &m ) : void

Protected Methods

Method Description
CloseInterfaces ( ) : void

do cleanup and release DirectShow.

DoFFRW ( ) : void
GetInterfaces ( string filename ) : bool

create the used COM components and get the interfaces.

OnInitialized ( ) : void
OnProcess ( ) : void
ReInit ( ) : void
SetSourceDestRectangles ( Rectangle rSource, Rectangle rDest ) : void
SetVideoPosition ( Rectangle rDest ) : void
UpdateCurrentPosition ( ) : void

Private Methods

Method Description
CheckVideoResolutionChanges ( ) : void
MovieEnded ( ) : void
OnGraphNotify ( ) : void
RegOpenKeyEx ( IntPtr key, string subKey, uint ulOptions, uint sam, IntPtr &resultKey ) : ulong
UpdateDuration ( ) : void

Method Details

BaseStreamBufferPlayer() public method

public BaseStreamBufferPlayer ( ) : System
return System

CloseInterfaces() protected method

do cleanup and release DirectShow.
protected CloseInterfaces ( ) : void
return void

ContinueGraph() public method

public ContinueGraph ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

DoFFRW() protected method

protected DoFFRW ( ) : void
return void

GetInterfaces() protected method

create the used COM components and get the interfaces.
protected GetInterfaces ( string filename ) : bool
filename string
return bool

OnInitialized() protected method

protected OnInitialized ( ) : void
return void

OnProcess() protected method

protected OnProcess ( ) : void
return void

Pause() public method

public Pause ( ) : void
return void

PauseGraph() public method

public PauseGraph ( ) : void
return void

Play() public method

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

Process() public method

public Process ( ) : void
return void

ReInit() protected method

protected ReInit ( ) : void
return void

SeekAbsolute() public method

public SeekAbsolute ( double dTimeInSecs ) : void
dTimeInSecs double
return void

SeekAsolutePercentage() public method

public SeekAsolutePercentage ( int iPercentage ) : void
iPercentage int
return void

SeekRelative() public method

public SeekRelative ( double dTime ) : void
dTime double
return void

SeekRelativePercentage() public method

public SeekRelativePercentage ( int iPercentage ) : void
iPercentage int
return void

SetSourceDestRectangles() protected method

protected SetSourceDestRectangles ( Rectangle rSource, Rectangle rDest ) : void
rSource System.Drawing.Rectangle
rDest System.Drawing.Rectangle
return void

SetVideoPosition() protected method

protected SetVideoPosition ( Rectangle rDest ) : void
rDest System.Drawing.Rectangle
return void

SetVideoWindow() public method

public SetVideoWindow ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

UpdateCurrentPosition() protected method

protected UpdateCurrentPosition ( ) : void
return void

WndProc() public method

public WndProc ( Message &m ) : void
m System.Windows.Forms.Message
return void

Property Details

_aspectX protected property

protected int _aspectX
return int

_aspectY protected property

protected int _aspectY
return int

_audioCodecFilter protected property

protected IBaseFilter _audioCodecFilter
return IBaseFilter

_audioRendererFilter protected property

protected IBaseFilter _audioRendererFilter
return IBaseFilter

_basicAudio protected property

audio interface used to control volume.
protected IBasicAudio _basicAudio
return IBasicAudio

_basicVideo protected property

interface to get information and control video.
protected IBasicVideo2 _basicVideo
return IBasicVideo2

_bufferSource protected property

protected IStreamBufferSource _bufferSource
return IStreamBufferSource

_contentStart protected property

protected double _contentStart
return double

_currentFile protected property

protected string _currentFile
return string

_currentPos protected property

protected double _currentPos
return double

_duration protected property

protected double _duration
return double

_geometry protected property

protected Geometry.Type _geometry
return Geometry.Type

_graphBuilder protected property

protected IGraphBuilder _graphBuilder
return IGraphBuilder

_height protected property

protected int _height
return int

_isFullscreen protected property

protected bool _isFullscreen
return bool

_isLive protected property

protected bool _isLive
return bool

_isStarted protected property

protected bool _isStarted
return bool

_isWindowVisible protected property

protected bool _isWindowVisible
return bool

_lastPosition protected property

protected double _lastPosition
return double

_mediaCtrl protected property

control interface.
protected IMediaControl _mediaCtrl
return IMediaControl

_mediaEvt protected property

graph event interface.
protected IMediaEventEx _mediaEvt
return IMediaEventEx

_mediaSeeking protected property

protected IStreamBufferMediaSeeking _mediaSeeking
return IStreamBufferMediaSeeking

_mediaSeeking2 protected property

protected IStreamBufferMediaSeeking2 _mediaSeeking2
return IStreamBufferMediaSeeking2

_minBackingFiles protected property

protected int _minBackingFiles
return int

_positionX protected property

protected int _positionX
return int

_positionY protected property

protected int _positionY
return int

_rotEntry protected property

protected DsROTEntry _rotEntry
return DsROTEntry

_seekToBegin protected property

protected bool _seekToBegin
return bool

_speed protected property

protected int _speed
return int

_speedRate protected property

protected long _speedRate
return long

_state protected property

protected PlayState _state
return PlayState

_updateNeeded protected property

protected bool _updateNeeded
return bool

_updateTimer protected property

protected DateTime _updateTimer
return DateTime

_videoCodecFilter protected property

protected IBaseFilter _videoCodecFilter
return IBaseFilter

_videoHeight protected property

protected int _videoHeight
return int

_videoWidth protected property

protected int _videoWidth
return int

_videoWin protected property

video preview window interface.
protected IVideoWindow _videoWin
return IVideoWindow

_volume protected property

protected int _volume
return int

_width protected property

protected int _width
return int

customFilters protected property

protected IBaseFilter[] customFilters
return IBaseFilter[]

iSpeed protected property

protected int iSpeed
return int

m_StreamBufferConfig protected property

protected StreamBufferConfig m_StreamBufferConfig
return StreamBufferConfig

streamConfig2 protected property

protected IStreamBufferConfigure2 streamConfig2
return IStreamBufferConfigure2