Class RenderingEventArgs
A base class to represent media block rendering event arguments.
Inheritance
RenderingEventArgs
Inherited Members
Namespace: Unosquare.FFME.Common
Syntax
public abstract class RenderingEventArgs : EventArgs
Constructors
RenderingEventArgs(IMediaEngineState, StreamInfo, TimeSpan, TimeSpan, TimeSpan, Int64)
Initializes a new instance of the RenderingEventArgs class.
Declaration
protected RenderingEventArgs(IMediaEngineState engineState, StreamInfo stream, TimeSpan startTime, TimeSpan duration, TimeSpan clock, long pts)
Parameters
Type | Name | Description |
---|---|---|
IMediaEngineState | engineState | The media engine state. |
StreamInfo | stream | The stream. |
TimeSpan | startTime | The position. |
TimeSpan | duration | The duration. |
TimeSpan | clock | The clock. |
Int64 | pts | The original unadjusted PTS of the frame. |
Properties
Clock
Gets the clock position at which the media was called for rendering.
Declaration
public TimeSpan Clock { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
Duration
Gets how long this media has to be presented.
Declaration
public TimeSpan Duration { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
EngineState
Provides access to the underlying media engine state.
Declaration
public IMediaEngineState EngineState { get; }
Property Value
Type | Description |
---|---|
IMediaEngineState |
PresentationTime
Gets the unadjusted, original presentation timestamp (PTS) of the frame in
Declaration
public long PresentationTime { get; }
Property Value
Type | Description |
---|---|
Int64 |
StartTime
Gets the starting time at which this media has to be presented.
Declaration
public TimeSpan StartTime { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
Stream
Provides Stream Information coming from the media container.
Declaration
public StreamInfo Stream { get; }
Property Value
Type | Description |
---|---|
StreamInfo |