C# Class MediaPortal.Player.DVDPlayer

Inheritance: IPlayer
Exibir arquivo Open project: MediaPortal/MediaPortal-1

Protected Properties

Property Type Description
_UOPs int
_aspectRatio Geometry.Type
_basicAudio IBasicAudio
_basicVideo IBasicVideo2
_cmdOption IDvdCmd
_currChapter int
_currDomain DvdDomain
_currTime DirectShowLib.Dvd.DvdHMSFTimeCode
_currTitle int
_currentFile string
_currentTime double
_cyberlinkDVDNavigator bool
_duration double
_dvdCtrl IDvdControl2
_dvdGraph IDvdGraphBuilder
_dvdInfo IDvdInfo2
_dvdbasefilter IBaseFilter
_forceSubtitles bool
_freeNavigator bool
_fullScreen bool
_graphBuilder IGraphBuilder
_height int
_line21Decoder IAMLine21Decoder
_mediaCtrl IMediaControl
_mediaEvt IMediaEventEx
_mediaPos IMediaPosition
_mouseMsg System.Collections.ArrayList
_pendingCmd bool
_positionX int
_positionY int
_rotEntry DsROTEntry
_showClosedCaptions bool
_speed int
_started bool
_state PlayState
_updateNeeded bool
_videoHeight int
_videoPref DvdPreferredDisplayMode
_videoWidth int
_videoWin IVideoWindow
_visible bool
_volume int
_width int
arMode AspectRatioMode
buttonCount int
focusedButton int
pt Point

Public Methods

Method Description
AddPreferedCodecs ( IGraphBuilder _graphBuilder ) : void
AudioLanguage ( int iStream ) : string
CanSeek ( ) : bool
DVDPlayer ( ) : System
Dispose ( ) : void
GetResumeState ( byte &resumeData ) : bool
OnAction ( MediaPortal.GUI.Library.Action action ) : bool
Pause ( ) : void
Play ( string file ) : bool
Process ( ) : void
SeekAbsolute ( double newTime ) : void
SeekAsolutePercentage ( int percentage ) : void
SeekRelative ( double newTime ) : void
SeekRelativePercentage ( int percentage ) : void
SetResumeState ( byte resumeData ) : bool
SetVideoWindow ( ) : void
Stop ( ) : void
SubtitleLanguage ( int iStream ) : string

Translate the subpicture ID to a human readable string.

SubtitleName ( int iStream ) : string
WndProc ( Message &m ) : void

Protected Methods

Method Description
CloseInterfaces ( ) : void

do cleanup and release DirectShow.

GetInterfaces ( string path ) : bool

create the used COM components and get the interfaces.

OnProcess ( ) : void
Repaint ( ) : void
SetSourceDestRectangles ( Rectangle source, Rectangle destination ) : void
SetVideoPosition ( Rectangle destination ) : void
UpdateMenu ( ) : void

update menu items to match current playback state

Private Methods

Method Description
FirstPlayDvd ( string file ) : bool

handling the very first start of dvd playback.

GetLCID ( string language ) : int
OnCmdComplete ( int p1, int hrg ) : void

asynchronous command completed

OnDvdEvent ( ) : void

DVD event message handler

SetDefaultLanguages ( ) : void

Set the default languages of the

UpdateDuration ( ) : void
UpdateTitle ( int title ) : void

Method Details

AddPreferedCodecs() public method

public AddPreferedCodecs ( IGraphBuilder _graphBuilder ) : void
_graphBuilder IGraphBuilder
return void

AudioLanguage() public method

public AudioLanguage ( int iStream ) : string
iStream int
return string

CanSeek() public method

public CanSeek ( ) : bool
return bool

CloseInterfaces() protected method

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

DVDPlayer() public method

public DVDPlayer ( ) : System
return System

Dispose() public method

public Dispose ( ) : void
return void

GetInterfaces() protected method

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

GetResumeState() public method

public GetResumeState ( byte &resumeData ) : bool
resumeData byte
return bool

OnAction() public method

public OnAction ( MediaPortal.GUI.Library.Action action ) : bool
action MediaPortal.GUI.Library.Action
return bool

OnProcess() protected method

protected OnProcess ( ) : void
return void

Pause() public method

public Pause ( ) : void
return void

Play() public method

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

Process() public method

public Process ( ) : void
return void

Repaint() protected method

protected Repaint ( ) : void
return void

SeekAbsolute() public method

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

SeekAsolutePercentage() public method

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

SeekRelative() public method

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

SeekRelativePercentage() public method

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

SetResumeState() public method

public SetResumeState ( byte resumeData ) : bool
resumeData byte
return bool

SetSourceDestRectangles() protected method

protected SetSourceDestRectangles ( Rectangle source, Rectangle destination ) : void
source System.Drawing.Rectangle
destination System.Drawing.Rectangle
return void

SetVideoPosition() protected method

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

SetVideoWindow() public method

public SetVideoWindow ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

SubtitleLanguage() public method

Translate the subpicture ID to a human readable string.
public SubtitleLanguage ( int iStream ) : string
iStream int Subpicture ID
return string

SubtitleName() public method

public SubtitleName ( int iStream ) : string
iStream int
return string

UpdateMenu() protected method

update menu items to match current playback state
protected UpdateMenu ( ) : void
return void

WndProc() public method

public WndProc ( Message &m ) : void
m Message
return void

Property Details

_UOPs protected_oe property

protected int _UOPs
return int

_aspectRatio protected_oe property

protected Geometry.Type _aspectRatio
return Geometry.Type

_basicAudio protected_oe property

protected IBasicAudio _basicAudio
return IBasicAudio

_basicVideo protected_oe property

protected IBasicVideo2 _basicVideo
return IBasicVideo2

_cmdOption protected_oe property

asynchronous command interface.
protected IDvdCmd _cmdOption
return IDvdCmd

_currChapter protected_oe property

protected int _currChapter
return int

_currDomain protected_oe property

protected DvdDomain _currDomain
return DvdDomain

_currTime protected_oe property

protected DvdHMSFTimeCode,DirectShowLib.Dvd _currTime
return DirectShowLib.Dvd.DvdHMSFTimeCode

_currTitle protected_oe property

protected int _currTitle
return int

_currentFile protected_oe property

protected string _currentFile
return string

_currentTime protected_oe property

protected double _currentTime
return double

_cyberlinkDVDNavigator protected_oe property

protected bool _cyberlinkDVDNavigator
return bool

_duration protected_oe property

protected double _duration
return double

_dvdCtrl protected_oe property

dvd control interface.
protected IDvdControl2 _dvdCtrl
return IDvdControl2

_dvdGraph protected_oe property

dvd graph builder interface.
protected IDvdGraphBuilder _dvdGraph
return IDvdGraphBuilder

_dvdInfo protected_oe property

dvd information interface.
protected IDvdInfo2 _dvdInfo
return IDvdInfo2

_dvdbasefilter protected_oe property

protected IBaseFilter _dvdbasefilter
return IBaseFilter

_forceSubtitles protected_oe property

protected bool _forceSubtitles
return bool

_freeNavigator protected_oe property

protected bool _freeNavigator
return bool

_fullScreen protected_oe property

protected bool _fullScreen
return bool

_graphBuilder protected_oe property

protected IGraphBuilder _graphBuilder
return IGraphBuilder

_height protected_oe property

protected int _height
return int

_line21Decoder protected_oe property

protected IAMLine21Decoder _line21Decoder
return IAMLine21Decoder

_mediaCtrl protected_oe property

control interface.
protected IMediaControl _mediaCtrl
return IMediaControl

_mediaEvt protected_oe property

graph event interface.
protected IMediaEventEx _mediaEvt
return IMediaEventEx

_mediaPos protected_oe property

protected IMediaPosition _mediaPos
return IMediaPosition

_mouseMsg protected_oe property

protected ArrayList,System.Collections _mouseMsg
return System.Collections.ArrayList

_pendingCmd protected_oe property

asynchronous command pending.
protected bool _pendingCmd
return bool

_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

_showClosedCaptions protected_oe property

protected bool _showClosedCaptions
return bool

_speed protected_oe property

protected int _speed
return int

_started protected_oe property

protected bool _started
return bool

_state protected_oe property

current state of playback (playing/paused/...)
protected PlayState _state
return PlayState

_updateNeeded protected_oe property

protected bool _updateNeeded
return bool

_videoHeight protected_oe property

protected int _videoHeight
return int

_videoPref protected_oe property

protected DvdPreferredDisplayMode _videoPref
return DvdPreferredDisplayMode

_videoWidth protected_oe property

protected int _videoWidth
return int

_videoWin protected_oe property

dvd video playback window interface.
protected IVideoWindow _videoWin
return IVideoWindow

_visible protected_oe property

protected bool _visible
return bool

_volume protected_oe property

interface to single-step video.
protected int _volume
return int

_width protected_oe property

protected int _width
return int

arMode protected_oe property

protected AspectRatioMode arMode
return AspectRatioMode

buttonCount protected_oe property

protected int buttonCount
return int

focusedButton protected_oe property

protected int focusedButton
return int

pt protected_oe property

protected Point pt
return Point