Commit cdb20643 authored by Martin Finkel's avatar Martin Finkel

MediaPlayerChange events: Add API comments

parent 5af28bb4
......@@ -2,15 +2,31 @@
namespace LibVLCSharp.Shared
{
/// <summary>
/// The MediaPlayerChanged event indicates when a new MediaPlayer has been set up with the VideoView
/// and is ready to use for a first time playback.
/// </summary>
public class MediaPlayerChangedEventArgs : EventArgs
{
public MediaPlayerChangedEventArgs(LibVLCSharp.Shared.MediaPlayer oldMediaPlayer, LibVLCSharp.Shared.MediaPlayer newMediaPlayer)
/// <summary>
/// MediaPlayerChangedEventArgs constructor, used internally by LibVLCSharp
/// </summary>
/// <param name="oldMediaPlayer">The previous mediaplayer (if any)</param>
/// <param name="newMediaPlayer">The new mediaplayer (if any)</param>
public MediaPlayerChangedEventArgs(MediaPlayer oldMediaPlayer, MediaPlayer newMediaPlayer)
{
OldMediaPlayer = oldMediaPlayer;
NewMediaPlayer = newMediaPlayer;
}
public LibVLCSharp.Shared.MediaPlayer OldMediaPlayer { get; }
public LibVLCSharp.Shared.MediaPlayer NewMediaPlayer { get; }
/// <summary>
/// The previous mediaplayer (if any)
/// </summary>
public MediaPlayer OldMediaPlayer { get; }
/// <summary>
/// The new mediaplayer (if any)
/// </summary>
public MediaPlayer NewMediaPlayer { get; }
}
}
}
\ No newline at end of file
......@@ -2,15 +2,30 @@
namespace LibVLCSharp.Shared
{
/// <summary>
/// Internal event used by LibVLCSharp.
/// </summary>
public class MediaPlayerChangingEventArgs : EventArgs
{
public MediaPlayerChangingEventArgs(LibVLCSharp.Shared.MediaPlayer oldMediaPlayer, LibVLCSharp.Shared.MediaPlayer newMediaPlayer)
/// <summary>
/// MediaPlayerChangingEventArgs constructor, used internally by LibVLCSharp
/// </summary>
/// <param name="oldMediaPlayer">The previous mediaplayer (if any)</param>
/// <param name="newMediaPlayer">The new mediaplayer (if any)</param>
public MediaPlayerChangingEventArgs(MediaPlayer oldMediaPlayer, MediaPlayer newMediaPlayer)
{
OldMediaPlayer = oldMediaPlayer;
NewMediaPlayer = newMediaPlayer;
}
public LibVLCSharp.Shared.MediaPlayer OldMediaPlayer { get; }
public LibVLCSharp.Shared.MediaPlayer NewMediaPlayer { get; }
/// <summary>
/// The previous mediaplayer (if any)
/// </summary>
public MediaPlayer OldMediaPlayer { get; }
/// <summary>
/// The new mediaplayer (if any)
/// </summary>
public MediaPlayer NewMediaPlayer { get; }
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment