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
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_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