/// <summary> /// Initializes a new instance of the <see cref="PositionChangedRoutedEventArgs" /> class. /// </summary> /// <param name="routedEvent">The routed event.</param> /// <param name="source">The source.</param> /// <param name="engineState">State of the engine.</param> /// <param name="oldPosition">The old position.</param> /// <param name="newPosition">The new position.</param> public PositionChangedRoutedEventArgs(RoutedEvent routedEvent, object source, IMediaEngineState engineState, TimeSpan oldPosition, TimeSpan newPosition) : base(routedEvent, source) { Position = newPosition; OldPosition = oldPosition; EngineState = engineState; }
/// <summary> /// Initializes a new instance of the <see cref="RenderingEventArgs" /> class. /// </summary> /// <param name="engineState">The media engine state.</param> /// <param name="stream">The stream.</param> /// <param name="startTime">The position.</param> /// <param name="duration">The duration.</param> /// <param name="clock">The clock.</param> protected RenderingEventArgs(IMediaEngineState engineState, StreamInfo stream, TimeSpan startTime, TimeSpan duration, TimeSpan clock) { EngineState = engineState; StartTime = startTime; Duration = duration; Clock = clock; Stream = stream; }
/// <summary> /// Initializes a new instance of the <see cref="RenderingAudioEventArgs" /> class. /// </summary> /// <param name="buffer">The buffer.</param> /// <param name="length">The length.</param> /// <param name="engineState">The engine.</param> /// <param name="stream">The stream.</param> /// <param name="startTime">The start time.</param> /// <param name="duration">The duration.</param> /// <param name="clock">The clock.</param> /// <param name="latency">The latency between the buffer position and the real-time playback clock.</param> internal RenderingAudioEventArgs( byte[] buffer, int length, IMediaEngineState engineState, StreamInfo stream, TimeSpan startTime, TimeSpan duration, TimeSpan clock, TimeSpan latency) : base(engineState, stream, startTime, duration, clock) { Buffer = buffer; BufferLength = length; SampleRate = Constants.AudioSampleRate; ChannelCount = Constants.AudioChannelCount; BitsPerSample = Constants.AudioBitsPerSample; Latency = latency; }
/// <summary> /// Initializes a new instance of the <see cref="RenderingSubtitlesEventArgs" /> class. /// </summary> /// <param name="text">The text.</param> /// <param name="originalText">The original text.</param> /// <param name="format">The format.</param> /// <param name="engineState">The engine.</param> /// <param name="stream">The stream.</param> /// <param name="startTime">The start time.</param> /// <param name="duration">The duration.</param> /// <param name="clock">The clock.</param> internal RenderingSubtitlesEventArgs( IList <string> text, IList <string> originalText, AVSubtitleType format, IMediaEngineState engineState, StreamInfo stream, TimeSpan startTime, TimeSpan duration, TimeSpan clock) : base(engineState, stream, startTime, duration, clock) { Text = text; Format = format; OriginalText = originalText; }
/// <summary> /// Initializes a new instance of the <see cref="RenderingVideoEventArgs" /> class. /// </summary> /// <param name="bitmap">The bitmap.</param> /// <param name="closedCaptions">The closed captions.</param> /// <param name="smtpeTimeCode">The smtpe time code.</param> /// <param name="pictureNumber">The picture number.</param> /// <param name="engineState">The engine.</param> /// <param name="stream">The stream.</param> /// <param name="startTime">The start time.</param> /// <param name="duration">The duration.</param> /// <param name="clock">The clock.</param> internal RenderingVideoEventArgs( BitmapDataBuffer bitmap, IReadOnlyList <ClosedCaptionPacket> closedCaptions, string smtpeTimeCode, long pictureNumber, IMediaEngineState engineState, StreamInfo stream, TimeSpan startTime, TimeSpan duration, TimeSpan clock) : base(engineState, stream, startTime, duration, clock) { PictureNumber = pictureNumber; Bitmap = bitmap; SmtpeTimeCode = smtpeTimeCode; ClosedCaptions = closedCaptions; }
/// <summary> /// Initializes a new instance of the <see cref="PositionChangedEventArgs" /> class. /// </summary> /// <param name="engineState">State of the engine.</param> /// <param name="oldPosition">The old position.</param> /// <param name="newPosition">The new position.</param> public PositionChangedEventArgs(IMediaEngineState engineState, TimeSpan oldPosition, TimeSpan newPosition) { Position = newPosition; OldPosition = oldPosition; EngineState = engineState; }