forked from MonoGame/MonoGame
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathH264Importer.cs
More file actions
27 lines (25 loc) · 914 Bytes
/
H264Importer.cs
File metadata and controls
27 lines (25 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// MonoGame - Copyright (C) MonoGame Foundation, Inc
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
namespace Microsoft.Xna.Framework.Content.Pipeline
{
/// <summary>
/// Provides methods for reading H.264 video files for use in the Content Pipeline
/// </summary>
[ContentImporter(".mp4", DisplayName = "H.264 Video - MonoGame", DefaultProcessor = "VideoProcessor")]
public class H264Importer : ContentImporter<VideoContent>
{
/// <summary>
/// Creates a new instance of H264Importer
/// </summary>
public H264Importer()
{
}
/// <inheritdoc/>
public override VideoContent Import(string filename, ContentImporterContext context)
{
var content = new VideoContent(filename);
return content;
}
}
}