- Implemented nearly all classes in the Media namespace side by side with the Windows implementation - Started adding unit tests to compare the ANX and XNA MediaLibrary behaviour - Merged the ConvertEquals for PackedVectors to a single method that does the job equally good
65 lines
1.8 KiB
C#
65 lines
1.8 KiB
C#
using System;
|
|
using ANX.Framework.NonXNA.Development;
|
|
|
|
// 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
|
|
|
|
namespace ANX.Framework.Media
|
|
{
|
|
[PercentageComplete(10)]
|
|
[Developer("AstrorEnales")]
|
|
[TestState(TestStateAttribute.TestState.Untested)]
|
|
public sealed class Video
|
|
{
|
|
internal TimeSpan PlayPosition
|
|
{
|
|
get { throw new NotImplementedException(); }
|
|
//get { return nativeVideo.PlayPosition; }
|
|
}
|
|
|
|
#region Public
|
|
public TimeSpan Duration { get; private set; }
|
|
public int Width { get; private set; }
|
|
public int Height { get; private set; }
|
|
public float FramesPerSecond { get; private set; }
|
|
public VideoSoundtrackType VideoSoundtrackType { get; private set; }
|
|
#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
|
|
|
|
internal void Play()
|
|
{
|
|
// TODO: nativeVideo.Play();
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
internal void Pause()
|
|
{
|
|
// TODO: nativeVideo.Pause();
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
internal void Resume()
|
|
{
|
|
// TODO: nativeVideo.Resume();
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
internal void Stop()
|
|
{
|
|
// TODO: nativeVideo.Stop();
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|