C# Class MediaPortal.Player.IPlayer

This class holds the IPlayer interface which must be implemented by any interal player like - audio players - video players - tv timeshifting players
Inheritance: IDisposable
Afficher le fichier Open project: MediaPortal/MediaPortal-1 Class Usage Examples

Protected Properties

Свойство Type Description
_isVisible bool
_sourceRectangle System.Drawing.Rectangle
_videoRectangle System.Drawing.Rectangle

Méthodes publiques

Méthode Description
AudioLanguage ( int iStream ) : string

Property to get the name for an audio stream

AudioType ( int iStream ) : string

Property to get the type of an audio stream

CanSeek ( ) : bool

Property which indicates if we can seek in the file

ContinueGraph ( ) : void
Dispose ( ) : void
EditionLanguage ( int iStream ) : string

Property to get the name for an edition stream

EditionType ( int iStream ) : string

Property to get the type of an edition stream

GetAudioDualMonoMode ( ) : eAudioDualMonoMode
GetHDC ( ) : int
GetResumeState ( byte &resumeData ) : bool

GetVideoFormat ( ) : VideoStreamFormat
IPlayer ( ) : System

Default ctor

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

this method can be overriden if the player needs to respond to user actions like keypresses and mouse events

OnZapping ( int info ) : void
Pause ( ) : void

Method to pause or unpause

PauseGraph ( ) : void
Play ( string strFile ) : bool

This method is used to start playing a file

PlayStream ( string strFile, string streamName ) : bool

Nearly the same as Play(), but usefull for web streams to give the real name of the stream and not url

Process ( ) : void

This method will be called on a regular basis by MP it allows the external player to do some work

ReleaseHDC ( int HDC ) : void
SeekAbsolute ( double dTime ) : void

Method to seek to a specific point relative

SeekAsolutePercentage ( int iPercentage ) : void

Method to seek to a specific point

SeekRelative ( double dTime ) : void

Method to seek to a specific point relative from the current position

SeekRelativePercentage ( int iPercentage ) : void

Method to seek to a specific point relative to the current position

SetAudioDualMonoMode ( eAudioDualMonoMode mode ) : bool
SetResumeState ( byte resumeData ) : bool

SetVideoWindow ( ) : void

Method which is called by MP if the player needs to update its video window because the coordinates have been changed

SetVideoWindowMadVR ( ) : void

Method which is called by MP if the player needs to update its madVR video window because the coordinates have been changed

Stop ( ) : void

Method to stop playing

Stop ( bool keepExclusiveModeOn ) : void

Method to stop playing

StopAndKeepTimeShifting ( ) : void

Method to stop playing but at the same time keep timeshifting on server

SubtitleLanguage ( int iStream ) : string

Property to get/set the language name for a subtitle stream

SubtitleName ( int iStream ) : string

Property to get the name for a subtitle stream

VideoName ( int iStream ) : string

Property to get the name for an Video stream

VideoType ( int iStream ) : string

Property to get the type of an Video stream

WndProc ( Message &m ) : void

Method to handle any windows message MP will route any window message to the players so they can react on it by overriding this mehtod

Method Details

AudioLanguage() public méthode

Property to get the name for an audio stream
public AudioLanguage ( int iStream ) : string
iStream int
Résultat string

AudioType() public méthode

Property to get the type of an audio stream
public AudioType ( int iStream ) : string
iStream int
Résultat string

CanSeek() public méthode

Property which indicates if we can seek in the file
public CanSeek ( ) : bool
Résultat bool

ContinueGraph() public méthode

public ContinueGraph ( ) : void
Résultat void

Dispose() public abstract méthode

public abstract Dispose ( ) : void
Résultat void

EditionLanguage() public méthode

Property to get the name for an edition stream
public EditionLanguage ( int iStream ) : string
iStream int
Résultat string

EditionType() public méthode

Property to get the type of an edition stream
public EditionType ( int iStream ) : string
iStream int
Résultat string

GetAudioDualMonoMode() public méthode

public GetAudioDualMonoMode ( ) : eAudioDualMonoMode
Résultat eAudioDualMonoMode

GetHDC() public méthode

public GetHDC ( ) : int
Résultat int

GetResumeState() public méthode

public GetResumeState ( byte &resumeData ) : bool
resumeData byte resumeData
Résultat bool

GetVideoFormat() public méthode

public GetVideoFormat ( ) : VideoStreamFormat
Résultat VideoStreamFormat

IPlayer() public méthode

Default ctor
public IPlayer ( ) : System
Résultat System

OnAction() public méthode

this method can be overriden if the player needs to respond to user actions like keypresses and mouse events
public OnAction ( MediaPortal.GUI.Library.Action action ) : bool
action MediaPortal.GUI.Library.Action
Résultat bool

OnZapping() public méthode

public OnZapping ( int info ) : void
info int
Résultat void

Pause() public méthode

Method to pause or unpause
public Pause ( ) : void
Résultat void

PauseGraph() public méthode

public PauseGraph ( ) : void
Résultat void

Play() public méthode

This method is used to start playing a file
public Play ( string strFile ) : bool
strFile string file to play
Résultat bool

PlayStream() public méthode

Nearly the same as Play(), but usefull for web streams to give the real name of the stream and not url
public PlayStream ( string strFile, string streamName ) : bool
strFile string file to play
streamName string real name of the stream
Résultat bool

Process() public méthode

This method will be called on a regular basis by MP it allows the external player to do some work
public Process ( ) : void
Résultat void

ReleaseHDC() public méthode

public ReleaseHDC ( int HDC ) : void
HDC int
Résultat void

SeekAbsolute() public méthode

Method to seek to a specific point relative
public SeekAbsolute ( double dTime ) : void
dTime double absolute time in secs
Résultat void

SeekAsolutePercentage() public méthode

Method to seek to a specific point
public SeekAsolutePercentage ( int iPercentage ) : void
iPercentage int percentage (0 to +100%)
Résultat void

SeekRelative() public méthode

Method to seek to a specific point relative from the current position
public SeekRelative ( double dTime ) : void
dTime double relative time in secs
Résultat void

SeekRelativePercentage() public méthode

Method to seek to a specific point relative to the current position
public SeekRelativePercentage ( int iPercentage ) : void
iPercentage int percentage (-100% to +100%) relative to the current position
Résultat void

SetAudioDualMonoMode() public méthode

public SetAudioDualMonoMode ( eAudioDualMonoMode mode ) : bool
mode eAudioDualMonoMode
Résultat bool

SetResumeState() public méthode

public SetResumeState ( byte resumeData ) : bool
resumeData byte resumeData
Résultat bool

SetVideoWindow() public méthode

Method which is called by MP if the player needs to update its video window because the coordinates have been changed
public SetVideoWindow ( ) : void
Résultat void

SetVideoWindowMadVR() public méthode

Method which is called by MP if the player needs to update its madVR video window because the coordinates have been changed
public SetVideoWindowMadVR ( ) : void
Résultat void

Stop() public méthode

Method to stop playing
public Stop ( ) : void
Résultat void

Stop() public méthode

Method to stop playing
public Stop ( bool keepExclusiveModeOn ) : void
keepExclusiveModeOn bool
Résultat void

StopAndKeepTimeShifting() public méthode

Method to stop playing but at the same time keep timeshifting on server
public StopAndKeepTimeShifting ( ) : void
Résultat void

SubtitleLanguage() public méthode

Property to get/set the language name for a subtitle stream
public SubtitleLanguage ( int iStream ) : string
iStream int
Résultat string

SubtitleName() public méthode

Property to get the name for a subtitle stream
public SubtitleName ( int iStream ) : string
iStream int
Résultat string

VideoName() public méthode

Property to get the name for an Video stream
public VideoName ( int iStream ) : string
iStream int
Résultat string

VideoType() public méthode

Property to get the type of an Video stream
public VideoType ( int iStream ) : string
iStream int
Résultat string

WndProc() public méthode

Method to handle any windows message MP will route any window message to the players so they can react on it by overriding this mehtod
public WndProc ( Message &m ) : void
m System.Windows.Forms.Message Message
Résultat void

Property Details

_isVisible protected_oe property

protected bool _isVisible
Résultat bool

_sourceRectangle protected_oe property

protected Rectangle,System.Drawing _sourceRectangle
Résultat System.Drawing.Rectangle

_videoRectangle protected_oe property

protected Rectangle,System.Drawing _videoRectangle
Résultat System.Drawing.Rectangle