C# 클래스 LibMPlayerCommon.MPlayer

파일 보기 프로젝트 열기: majorsilence/MPlayerControl 1 사용 예제들

Private Properties

프로퍼티 타입 설명
HandleMediaPlayerErrorDataReceived void
HandleMediaPlayerOutputDataReceived void
InitializeMplayer void
LoadCurrentPlayingFileLength void
MPlayer System
MplayerBackend string
PrepareFilePath string
_currentPostionTimer_Elapsed void

공개 메소드들

메소드 설명
CurrentPlayingFileLength ( ) : int

Retrieves the number of seconds of the current playing video.

GetArtist ( ) : string
GetAudioBitrate ( ) : string
GetAudioCodec ( ) : string
GetAudioSamples ( ) : string
GetComment ( ) : string
GetCurrentPosition ( ) : int

Get the current postion in the file being played.

It is highly recommended to use the CurrentPostion event instead.

GetGenre ( ) : string
GetPercentPos ( ) : string

get percent positiob

GetTitle ( ) : string
GetTrack ( ) : string
GetVideoBitrate ( ) : string
GetVideoResolution ( ) : string
GetYear ( ) : string
GetfileName ( ) : string
InsertSubtitles ( string filepath ) : void
LoadFile ( string filePath ) : void

Starts a new video/audio file immediatly. Requires that Play has been called.

MPlayer ( int wid, MplayerBackends backend ) : System
MPlayer ( int wid, MplayerBackends backend, string mplayerPath ) : System
MPlayer ( int wid, MplayerBackends backend, string mplayerPath, bool loadMplayer ) : System

Create a new instance of mplayer class.

MovePosition ( int timePosition ) : void

Move to a new position in the video.

Mute ( ) : void

Toggle Mute.

Pause ( ) : void

Pause the current video. If paused it will unpause.

Play ( string filePath ) : void

Load and start playing a video.

Quit ( ) : void

Close MPlayer instance.

RemoveSubtitle ( ) : void
Seek ( int value, Seek type ) : void

Seek a new postion. Seek to some place in the movie. Seek.Relative is a relative seek of +/- value seconds (default). Seek.Percentage is a seek to value % in the movie. Seek.Absolute is a seek to an absolute position of value seconds.

SetPercent ( int v ) : void

set percent position of mplayer

SetSize ( int width, int height ) : void
Stop ( ) : void

Stop the current video.

SubDelay ( int v ) : void
SubPos ( int v ) : void
SubScale ( int v ) : void
SwitchAudioTrack ( int track ) : void
SwitchRatio ( string ratio ) : void

Change aspect ratio at runtime. [value] is the new aspect ratio expressed as a float (e.g. 1.77778 for 16/9), or special value -1 to reset to original aspect ratio (ditto if [value] is missing), or special value 0 to disable automatic movie aspect ratio compensation. There might be problems with some video filters.

SwitchSubtitle ( int sub ) : void
ToggleFullScreen ( ) : void

Toggle Fullscreen.

VisibilitySubtitle ( int v ) : void
Volume ( int volume ) : void

Accepts a volume value of 0 - 100.

getalbum ( ) : string

비공개 메소드들

메소드 설명
HandleMediaPlayerErrorDataReceived ( object sender, System e ) : void

All mplayer error output is read through this function.

HandleMediaPlayerOutputDataReceived ( object sender, System e ) : void

All mplayer standard output is read through this function.

InitializeMplayer ( ) : void
LoadCurrentPlayingFileLength ( ) : void
MPlayer ( ) : System
MplayerBackend ( ) : string
PrepareFilePath ( string filePath ) : string

Prepare filepaths to be used witht the loadfile command.

For some reason it strips the DirectorySeperatorChar so we double it up here.

_currentPostionTimer_Elapsed ( object sender, ElapsedEventArgs e ) : void

메소드 상세

CurrentPlayingFileLength() 공개 메소드

Retrieves the number of seconds of the current playing video.
public CurrentPlayingFileLength ( ) : int
리턴 int

GetArtist() 공개 메소드

public GetArtist ( ) : string
리턴 string

GetAudioBitrate() 공개 메소드

public GetAudioBitrate ( ) : string
리턴 string

GetAudioCodec() 공개 메소드

public GetAudioCodec ( ) : string
리턴 string

GetAudioSamples() 공개 메소드

public GetAudioSamples ( ) : string
리턴 string

GetComment() 공개 메소드

public GetComment ( ) : string
리턴 string

GetCurrentPosition() 공개 메소드

Get the current postion in the file being played.
It is highly recommended to use the CurrentPostion event instead.
public GetCurrentPosition ( ) : int
리턴 int

GetGenre() 공개 메소드

public GetGenre ( ) : string
리턴 string

GetPercentPos() 공개 메소드

get percent positiob
public GetPercentPos ( ) : string
리턴 string

GetTitle() 공개 메소드

public GetTitle ( ) : string
리턴 string

GetTrack() 공개 메소드

public GetTrack ( ) : string
리턴 string

GetVideoBitrate() 공개 메소드

public GetVideoBitrate ( ) : string
리턴 string

GetVideoResolution() 공개 메소드

public GetVideoResolution ( ) : string
리턴 string

GetYear() 공개 메소드

public GetYear ( ) : string
리턴 string

GetfileName() 공개 메소드

public GetfileName ( ) : string
리턴 string

InsertSubtitles() 공개 메소드

public InsertSubtitles ( string filepath ) : void
filepath string
리턴 void

LoadFile() 공개 메소드

Starts a new video/audio file immediatly. Requires that Play has been called.
public LoadFile ( string filePath ) : void
filePath string string
리턴 void

MPlayer() 공개 메소드

public MPlayer ( int wid, MplayerBackends backend ) : System
wid int
backend MplayerBackends
리턴 System

MPlayer() 공개 메소드

public MPlayer ( int wid, MplayerBackends backend, string mplayerPath ) : System
wid int
backend MplayerBackends
mplayerPath string
리턴 System

MPlayer() 공개 메소드

Create a new instance of mplayer class.
public MPlayer ( int wid, MplayerBackends backend, string mplayerPath, bool loadMplayer ) : System
wid int Window ID that mplayer should attach itself
backend MplayerBackends The video output backend that mplayer will use.
mplayerPath string The full filepath to mplayer.exe. If mplayerPath is left empty it will search for mplayer.exe in /// "current directory\backend\mplayer.exe" on windows and mplayer in the path on linux.
loadMplayer bool If true mplayer will immediately be loaded and you should not attempt to /// play any files until MplayerRunning is true.
리턴 System

MovePosition() 공개 메소드

Move to a new position in the video.
public MovePosition ( int timePosition ) : void
timePosition int Seconds. The position to seek move to.
리턴 void

Mute() 공개 메소드

Toggle Mute.
public Mute ( ) : void
리턴 void

Pause() 공개 메소드

Pause the current video. If paused it will unpause.
public Pause ( ) : void
리턴 void

Play() 공개 메소드

Load and start playing a video.
public Play ( string filePath ) : void
filePath string
리턴 void

Quit() 공개 메소드

Close MPlayer instance.
public Quit ( ) : void
리턴 void

RemoveSubtitle() 공개 메소드

public RemoveSubtitle ( ) : void
리턴 void

Seek() 공개 메소드

Seek a new postion. Seek to some place in the movie. Seek.Relative is a relative seek of +/- value seconds (default). Seek.Percentage is a seek to value % in the movie. Seek.Absolute is a seek to an absolute position of value seconds.
public Seek ( int value, Seek type ) : void
value int
type Seek
리턴 void

SetPercent() 공개 메소드

set percent position of mplayer
public SetPercent ( int v ) : void
v int
리턴 void

SetSize() 공개 메소드

public SetSize ( int width, int height ) : void
width int
height int
리턴 void

Stop() 공개 메소드

Stop the current video.
public Stop ( ) : void
리턴 void

SubDelay() 공개 메소드

public SubDelay ( int v ) : void
v int
리턴 void

SubPos() 공개 메소드

public SubPos ( int v ) : void
v int
리턴 void

SubScale() 공개 메소드

public SubScale ( int v ) : void
v int
리턴 void

SwitchAudioTrack() 공개 메소드

public SwitchAudioTrack ( int track ) : void
track int
리턴 void

SwitchRatio() 공개 메소드

Change aspect ratio at runtime. [value] is the new aspect ratio expressed as a float (e.g. 1.77778 for 16/9), or special value -1 to reset to original aspect ratio (ditto if [value] is missing), or special value 0 to disable automatic movie aspect ratio compensation. There might be problems with some video filters.
public SwitchRatio ( string ratio ) : void
ratio string
리턴 void

SwitchSubtitle() 공개 메소드

public SwitchSubtitle ( int sub ) : void
sub int
리턴 void

ToggleFullScreen() 공개 메소드

Toggle Fullscreen.
public ToggleFullScreen ( ) : void
리턴 void

VisibilitySubtitle() 공개 메소드

public VisibilitySubtitle ( int v ) : void
v int
리턴 void

Volume() 공개 메소드

Accepts a volume value of 0 - 100.
public Volume ( int volume ) : void
volume int
리턴 void

getalbum() 공개 메소드

public getalbum ( ) : string
리턴 string