This documentation is archived and is not being maintained.

Audio, Video, Games and Graphics (Visual C#) 

You can Visual C# to create multimedia applications based on DirectX for Managed Code and Windows Media Technologies.

Managed DirectX

Microsoft® DirectX® is an advanced suite of multimedia application programming interfaces (APIs) built into Microsoft Windows® operating systems. DirectX provides a standard development platform for Windows-based PCs by enabling software developers to access specialized hardware features without having to write hardware-specific code. This technology was first introduced in 1995 and is a recognized standard for multimedia application development on the Windows platform.

Simply put, DirectX is a Windows technology that enables higher performance in graphics, including full-color graphics, video, and 3-D animation, and sound, including surround sound, when you are playing games or watching video on your PC.

For more information about using DirectX in C# applications, see DirectX 9.0 for Managed Code on MSDN Online and the Microsoft DirectX Developer Center.

Windows Media Player

The Windows Media Player ActiveX control can be used in C# applications to add audio and video playback capability. The Microsoft Windows Media Player 10 Software Development Kit (SDK) provides information and tools to customize Windows Media Player and to use the Windows Media Player ActiveX control. The SDK includes documentation and code examples showing how to use the Media Player ActiveX control from a C# application.

For more information, see Windows Media Player 10 SDK on MSDN Online.

Windows Media Encoder

The Windows Media Encoder 9 Series SDK can be programmed using C# to perform the following types of tasks:

  • Broadcast live content. A news organization can use the Automation API to schedule the automatic capture and broadcast of live content. For example, local transportation departments can stream live pictures of road conditions at multiple trouble spots, alerting drivers to traffic congestion and advising them of alternate routes.

  • Batch-process content. A media production organization that must process a high volume of large files can create a batch process that uses the Automation API to repeatedly capture and encode streams, one after the other. A corporation can use the Automation API to manage its streaming media services with a preferred scripting language and Windows Script Host. Windows Script Host is a language-independent host that can be used to run any script engine on the Microsoft Windows® 95 or later, Windows NT, or Windows 2000 operating systems.

  • Create a custom user interface. An Internet service provider (ISP) can build an interface that uses the functionality of the Automation API to capture, encode, and broadcast media streams. Alternatively, you can use the predefined user interfaces within the Automation API for the same purpose.

  • Remotely administer Windows Media Encoder applications. You can use the Automation API to run, troubleshoot, and administer Windows Media Encoder applications from a remote computer.

For more information, see Windows Media Encoder 9 Series SDK on MSDN online. The Programming C# topic describes which references to include when working in C#.

Windows Media Server

The Microsoft® Windows Media® Services 9 Series Software Development Kit (SDK) is a powerful automation-based Application Programming Interface (API) designed for anyone who wants to develop a Windows Media Services 9 Series application. You can use this SDK in C# to programmatically manage a Windows Media server to send digital media content to clients on both unicast and multicast-enabled networks. For more information, see Windows Media Services 9 Series SDK.

See Also