C# Class MediaPortal.Player.BaseStreamBufferPlayer

Inheritance: IPlayer
显示文件 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_oe property

protected int _aspectX
return int

_aspectY protected_oe property

protected int _aspectY
return int

_audioCodecFilter protected_oe property

protected IBaseFilter _audioCodecFilter
return IBaseFilter

_audioRendererFilter protected_oe property

protected IBaseFilter _audioRendererFilter
return IBaseFilter

_basicAudio protected_oe property

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

_basicVideo protected_oe property

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

_bufferSource protected_oe property

protected IStreamBufferSource _bufferSource
return IStreamBufferSource

_contentStart protected_oe property

protected double _contentStart
return double

_currentFile protected_oe property

protected string _currentFile
return string

_currentPos protected_oe property

protected double _currentPos
return double

_duration protected_oe property

protected double _duration
return double

_geometry protected_oe property

protected Geometry.Type _geometry
return Geometry.Type

_graphBuilder protected_oe property

protected IGraphBuilder _graphBuilder
return IGraphBuilder

_height protected_oe property

protected int _height
return int

_isFullscreen protected_oe property

protected bool _isFullscreen
return bool

_isLive protected_oe property

protected bool _isLive
return bool

_isStarted protected_oe property

protected bool _isStarted
return bool

_isWindowVisible protected_oe property

protected bool _isWindowVisible
return bool

_lastPosition protected_oe property

protected double _lastPosition
return double

_mediaCtrl protected_oe property

control interface.
protected IMediaControl _mediaCtrl
return IMediaControl

_mediaEvt protected_oe property

graph event interface.
protected IMediaEventEx _mediaEvt
return IMediaEventEx

_mediaSeeking protected_oe property

protected IStreamBufferMediaSeeking _mediaSeeking
return IStreamBufferMediaSeeking

_mediaSeeking2 protected_oe property

protected IStreamBufferMediaSeeking2 _mediaSeeking2
return IStreamBufferMediaSeeking2

_minBackingFiles protected_oe property

protected int _minBackingFiles
return int

_positionX protected_oe property

protected int _positionX
return int

_positionY protected_oe property

protected int _positionY
return int

_rotEntry protected_oe property

protected DsROTEntry _rotEntry
return DsROTEntry

_seekToBegin protected_oe property

protected bool _seekToBegin
return bool

_speed protected_oe property

protected int _speed
return int

_speedRate protected_oe property

protected long _speedRate
return long

_state protected_oe property

protected PlayState _state
return PlayState

_updateNeeded protected_oe property

protected bool _updateNeeded
return bool

_updateTimer protected_oe property

protected DateTime _updateTimer
return DateTime

_videoCodecFilter protected_oe property

protected IBaseFilter _videoCodecFilter
return IBaseFilter

_videoHeight protected_oe property

protected int _videoHeight
return int

_videoWidth protected_oe property

protected int _videoWidth
return int

_videoWin protected_oe property

video preview window interface.
protected IVideoWindow _videoWin
return IVideoWindow

_volume protected_oe property

protected int _volume
return int

_width protected_oe property

protected int _width
return int

customFilters protected_oe property

protected IBaseFilter[] customFilters
return IBaseFilter[]

iSpeed protected_oe property

protected int iSpeed
return int

m_StreamBufferConfig protected_oe property

protected StreamBufferConfig m_StreamBufferConfig
return StreamBufferConfig

streamConfig2 protected_oe property

protected IStreamBufferConfigure2 streamConfig2
return IStreamBufferConfigure2