/// <summary> /// Creates the video player state changed event arguments. /// </summary> /// <param name="state">The current state.</param> /// <returns></returns> private EventArgsVideoPlayerStateChanged CreateVideoPlayerStateChangedEventArgs(elitePlayerState state) { var videoPlayerEventArgs = CreateVideoPlayerEventArgs(); return(videoPlayerEventArgs == null ? new EventArgsVideoPlayerStateChanged(state) : new EventArgsVideoPlayerStateChanged(videoPlayerEventArgs, state)); }
/// <summary> /// Initializes a new instance of the <see cref="VideoPlayerEventArgs" /> class. /// </summary> /// <param name="currentTime">The current time.</param> /// <param name="duration">The duration.</param> /// <param name="rate">The rate of playback.</param> /// <param name="currentState">State of the current.</param> public EventArgsVideoPlayerStateChanged(TimeSpan currentTime, TimeSpan duration, float rate, elitePlayerState currentState) : base(currentTime, duration, rate) { CurrentState = currentState; }
public EventArgsVideoPlayerStateChanged(EventArgsVideoPlayer videoPlayerEventArgs, elitePlayerState currentState) : this(videoPlayerEventArgs.CurrentTime, videoPlayerEventArgs.Duration, videoPlayerEventArgs.Rate, currentState) { }
/// <summary> /// Initializes a new instance of the <see cref="VideoPlayerStateChangedEventArgs"/> class. /// </summary> /// <param name="currentState">State of the current.</param> public EventArgsVideoPlayerStateChanged(elitePlayerState currentState) { CurrentState = currentState; }