C# 클래스 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
상속: IDisposable
파일 보기 프로젝트 열기: MediaPortal/MediaPortal-1 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_isVisible bool
_sourceRectangle System.Drawing.Rectangle
_videoRectangle System.Drawing.Rectangle

공개 메소드들

메소드 설명
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

메소드 상세

AudioLanguage() 공개 메소드

Property to get the name for an audio stream
public AudioLanguage ( int iStream ) : string
iStream int
리턴 string

AudioType() 공개 메소드

Property to get the type of an audio stream
public AudioType ( int iStream ) : string
iStream int
리턴 string

CanSeek() 공개 메소드

Property which indicates if we can seek in the file
public CanSeek ( ) : bool
리턴 bool

ContinueGraph() 공개 메소드

public ContinueGraph ( ) : void
리턴 void

Dispose() 공개 추상적인 메소드

public abstract Dispose ( ) : void
리턴 void

EditionLanguage() 공개 메소드

Property to get the name for an edition stream
public EditionLanguage ( int iStream ) : string
iStream int
리턴 string

EditionType() 공개 메소드

Property to get the type of an edition stream
public EditionType ( int iStream ) : string
iStream int
리턴 string

GetAudioDualMonoMode() 공개 메소드

public GetAudioDualMonoMode ( ) : eAudioDualMonoMode
리턴 eAudioDualMonoMode

GetHDC() 공개 메소드

public GetHDC ( ) : int
리턴 int

GetResumeState() 공개 메소드

public GetResumeState ( byte &resumeData ) : bool
resumeData byte resumeData
리턴 bool

GetVideoFormat() 공개 메소드

public GetVideoFormat ( ) : VideoStreamFormat
리턴 VideoStreamFormat

IPlayer() 공개 메소드

Default ctor
public IPlayer ( ) : System
리턴 System

OnAction() 공개 메소드

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
리턴 bool

OnZapping() 공개 메소드

public OnZapping ( int info ) : void
info int
리턴 void

Pause() 공개 메소드

Method to pause or unpause
public Pause ( ) : void
리턴 void

PauseGraph() 공개 메소드

public PauseGraph ( ) : void
리턴 void

Play() 공개 메소드

This method is used to start playing a file
public Play ( string strFile ) : bool
strFile string file to play
리턴 bool

PlayStream() 공개 메소드

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
리턴 bool

Process() 공개 메소드

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

ReleaseHDC() 공개 메소드

public ReleaseHDC ( int HDC ) : void
HDC int
리턴 void

SeekAbsolute() 공개 메소드

Method to seek to a specific point relative
public SeekAbsolute ( double dTime ) : void
dTime double absolute time in secs
리턴 void

SeekAsolutePercentage() 공개 메소드

Method to seek to a specific point
public SeekAsolutePercentage ( int iPercentage ) : void
iPercentage int percentage (0 to +100%)
리턴 void

SeekRelative() 공개 메소드

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

SeekRelativePercentage() 공개 메소드

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
리턴 void

SetAudioDualMonoMode() 공개 메소드

public SetAudioDualMonoMode ( eAudioDualMonoMode mode ) : bool
mode eAudioDualMonoMode
리턴 bool

SetResumeState() 공개 메소드

public SetResumeState ( byte resumeData ) : bool
resumeData byte resumeData
리턴 bool

SetVideoWindow() 공개 메소드

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

SetVideoWindowMadVR() 공개 메소드

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
리턴 void

Stop() 공개 메소드

Method to stop playing
public Stop ( ) : void
리턴 void

Stop() 공개 메소드

Method to stop playing
public Stop ( bool keepExclusiveModeOn ) : void
keepExclusiveModeOn bool
리턴 void

StopAndKeepTimeShifting() 공개 메소드

Method to stop playing but at the same time keep timeshifting on server
public StopAndKeepTimeShifting ( ) : void
리턴 void

SubtitleLanguage() 공개 메소드

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

SubtitleName() 공개 메소드

Property to get the name for a subtitle stream
public SubtitleName ( int iStream ) : string
iStream int
리턴 string

VideoName() 공개 메소드

Property to get the name for an Video stream
public VideoName ( int iStream ) : string
iStream int
리턴 string

VideoType() 공개 메소드

Property to get the type of an Video stream
public VideoType ( int iStream ) : string
iStream int
리턴 string

WndProc() 공개 메소드

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
리턴 void

프로퍼티 상세

_isVisible 보호되어 있는 프로퍼티

protected bool _isVisible
리턴 bool

_sourceRectangle 보호되어 있는 프로퍼티

protected Rectangle,System.Drawing _sourceRectangle
리턴 System.Drawing.Rectangle

_videoRectangle 보호되어 있는 프로퍼티

protected Rectangle,System.Drawing _videoRectangle
리턴 System.Drawing.Rectangle