C# Class VLC_WINRT.ViewModels.PlayVideo.PlayVideoViewModel

Inheritance: MediaPlaybackViewModel
显示文件 Open project: kusl/vlcwinrt

Public Methods

Method Description
OpenSubtitle ( string mrl ) : void
PlayVideoViewModel ( HistoryService historyService, IMediaService mediaService, VlcService mediaPlayerService ) : Autofac
SetActiveVideoInfo ( string mrl ) : void
SetActiveVideoInfo ( string token, string title ) : void
SetAudioTrack ( int i ) : System.Threading.Tasks.Task
SetRate ( float rate ) : System.Threading.Tasks.Task
SetSizeVideoPlayer ( uint x, uint y ) : System.Threading.Tasks.Task
SetSubtitleTrack ( int i ) : System.Threading.Tasks.Task
UnRegisterMediaControlEvents ( ) : void

Protected Methods

Method Description
OnPlaybackStarting ( ) : void
OnPlaybackStopped ( ) : void

Private Methods

Method Description
RegisterMediaControlEvents ( ) : void
UpdatePosition ( object sender, object e ) : System.Threading.Tasks.Task
VlcPlayerServiceOnMediaEnded ( object sender, Player player ) : void

Method Details

OnPlaybackStarting() protected method

protected OnPlaybackStarting ( ) : void
return void

OnPlaybackStopped() protected method

protected OnPlaybackStopped ( ) : void
return void

OpenSubtitle() public method

public OpenSubtitle ( string mrl ) : void
mrl string
return void

PlayVideoViewModel() public method

public PlayVideoViewModel ( HistoryService historyService, IMediaService mediaService, VlcService mediaPlayerService ) : Autofac
historyService VLC_WINRT.Utility.Services.RunTime.HistoryService
mediaService IMediaService
mediaPlayerService VLC_WINRT.Utility.Services.RunTime.VlcService
return Autofac

SetActiveVideoInfo() public method

public SetActiveVideoInfo ( string mrl ) : void
mrl string
return void

SetActiveVideoInfo() public method

public SetActiveVideoInfo ( string token, string title ) : void
token string
title string
return void

SetAudioTrack() public method

public SetAudioTrack ( int i ) : System.Threading.Tasks.Task
i int
return System.Threading.Tasks.Task

SetRate() public method

public SetRate ( float rate ) : System.Threading.Tasks.Task
rate float
return System.Threading.Tasks.Task

SetSizeVideoPlayer() public method

public SetSizeVideoPlayer ( uint x, uint y ) : System.Threading.Tasks.Task
x uint
y uint
return System.Threading.Tasks.Task

SetSubtitleTrack() public method

public SetSubtitleTrack ( int i ) : System.Threading.Tasks.Task
i int
return System.Threading.Tasks.Task

UnRegisterMediaControlEvents() public method

public UnRegisterMediaControlEvents ( ) : void
return void