2012-08-09 09:45:04 +00:00
|
|
|
using System;
|
2011-11-17 20:35:25 +00:00
|
|
|
|
2012-08-09 09:45:04 +00:00
|
|
|
// This file is part of the ANX.Framework created by the
|
|
|
|
// "ANX.Framework developer group" and released under the Ms-PL license.
|
|
|
|
// For details see: http://anxframework.codeplex.com/license
|
2011-11-17 20:35:25 +00:00
|
|
|
|
|
|
|
namespace ANX.Framework.Media
|
|
|
|
{
|
2012-01-16 20:08:38 +00:00
|
|
|
public sealed class Video
|
2011-11-17 20:35:25 +00:00
|
|
|
{
|
2012-08-26 12:53:00 +00:00
|
|
|
#region Public
|
2012-01-16 20:08:38 +00:00
|
|
|
public TimeSpan Duration
|
|
|
|
{
|
2012-08-26 12:53:00 +00:00
|
|
|
get;
|
|
|
|
private set;
|
2012-01-16 20:08:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public int Width
|
|
|
|
{
|
2012-08-26 12:53:00 +00:00
|
|
|
get;
|
|
|
|
private set;
|
2012-01-16 20:08:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public int Height
|
|
|
|
{
|
2012-08-26 12:53:00 +00:00
|
|
|
get;
|
|
|
|
private set;
|
2012-01-16 20:08:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public float FramesPerSecond
|
|
|
|
{
|
2012-08-26 12:53:00 +00:00
|
|
|
get;
|
|
|
|
private set;
|
2012-01-16 20:08:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public VideoSoundtrackType VideoSoundtrackType
|
|
|
|
{
|
2012-08-26 12:53:00 +00:00
|
|
|
get;
|
|
|
|
private set;
|
2012-01-16 20:08:38 +00:00
|
|
|
}
|
2012-08-26 12:53:00 +00:00
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
internal Video(int duration, int width, int height, float framesPerSecond, VideoSoundtrackType soundtrackType)
|
|
|
|
{
|
|
|
|
Duration = new TimeSpan(0, 0, 0, 0, duration);
|
|
|
|
Width = width;
|
|
|
|
Height = height;
|
|
|
|
FramesPerSecond = framesPerSecond;
|
|
|
|
VideoSoundtrackType = soundtrackType;
|
|
|
|
}
|
|
|
|
#endregion
|
2011-11-17 20:35:25 +00:00
|
|
|
}
|
|
|
|
}
|