/// <summary> /// Plays a media. /// </summary> public void Play(MediaBase media) { Medias.Play(media); }
///// <summary> ///// Play the current media ///// </summary> //public void Play() //{ // if (VlcContext.InteropManager != null && // VlcContext.InteropManager.MediaPlayerInterops != null && // VlcContext.InteropManager.MediaPlayerInterops.Play.IsAvailable && // VlcContext.HandleManager != null && // VlcContext.HandleManager.MediaPlayerHandles != null && // VlcContext.HandleManager.MediaPlayerHandles.ContainsKey(this)) // { // VlcContext.InteropManager.MediaPlayerInterops.Play.Invoke(VlcContext.HandleManager.MediaPlayerHandles[this]); // } //} ///// <summary> ///// Play the media ///// </summary> ///// <param name="media">Media to play</param> //public void Play(MediaBase media) //{ // Media = media; // Play(); //} ///// <summary> ///// Pause the current media ///// </summary> //public void Pause() //{ // if (VlcContext.InteropManager != null && // VlcContext.InteropManager.MediaPlayerInterops != null && // VlcContext.InteropManager.MediaPlayerInterops.Pause.IsAvailable && // VlcContext.HandleManager != null && // VlcContext.HandleManager.MediaPlayerHandles != null && // VlcContext.HandleManager.MediaPlayerHandles.ContainsKey(this)) // { // VlcContext.InteropManager.MediaPlayerInterops.Pause.Invoke(VlcContext.HandleManager.MediaPlayerHandles[this]); // } //} ///// <summary> ///// Stop the current media ///// </summary> //public void Stop() //{ // if ((IsPlaying || IsPaused) && // VlcContext.InteropManager != null && // VlcContext.InteropManager.MediaPlayerInterops != null && // VlcContext.InteropManager.MediaPlayerInterops.Stop.IsAvailable && // VlcContext.HandleManager != null && // VlcContext.HandleManager.MediaPlayerHandles != null && // VlcContext.HandleManager.MediaPlayerHandles.ContainsKey(this)) // { // VlcContext.InteropManager.MediaPlayerInterops.Stop.Invoke(VlcContext.HandleManager.MediaPlayerHandles[this]); // } //} /// <summary> /// Plays the current media. /// </summary> public void Play() { Medias.Play(); }