Table of Contents

Class VideoContent

Namespace
Microsoft.Xna.Framework.Content.Pipeline
Assembly
MonoGame.Framework.Content.Pipeline.dll

Provides a base class for all video objects.

public class VideoContent : ContentItem, IDisposable
Inheritance
VideoContent
Implements
Inherited Members

Constructors

VideoContent(string)

Initializes a new copy of the VideoContent class for the specified video file.

public VideoContent(string filename)

Parameters

filename string

The file name of the video to import.

Properties

BitsPerSecond

Gets the bit rate for this video.

public int BitsPerSecond { get; }

Property Value

int

Duration

Gets the duration of this video.

public TimeSpan Duration { get; }

Property Value

TimeSpan

Filename

Gets or sets the file name for this video.

[ContentSerializer]
public string Filename { get; set; }

Property Value

string

FramesPerSecond

Gets the frame rate for this video.

public float FramesPerSecond { get; }

Property Value

float

Height

Gets the height of this video.

public int Height { get; }

Property Value

int

VideoSoundtrackType

Gets or sets the type of soundtrack accompanying the video.

[ContentSerializer]
public VideoSoundtrackType VideoSoundtrackType { get; set; }

Property Value

VideoSoundtrackType

Width

Gets the width of this video.

public int Width { get; }

Property Value

int

Methods

Dispose()

Immediately releases the unmanaged resources used by this object.

public void Dispose()

Dispose(bool)

Immediately releases the unmanaged resources used by this object.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

~VideoContent()

protected ~VideoContent()