Program a Media-Player in C#
Create a video and audio-player using C# and the Windows Presentation Foundation
Watch Promo
Program a media player application with C# and Visual Studio to play video and audio...
In this course you will follow the development of a complete project from the ground up. It explains how to use design and code a WPF program in Visual Studio. You will end up with a utility that plays audio and video, controls playback volume, balance, position and speed.
You will develop programs that do all the following:
- Play video and audio files
- Load single media files or entire folders of files
- Drag-and-drop files direct from the Windows Explorer
- Create named playlists that can be saved and loaded to and from disk
- Change the volume, position, speed and balance of a playing track
- Use styles and effects to change the user interface appearance
- Use Timers to respond to tick events
- Use file dialogs to save and load files
- Read and write structured XML files to and from disk
- Create applications with multiple windows
- Use Windows Shell functions to obtain file metadata
This is a project-based course that comes with all the source code ready-to-run. It provides a great way for C# programmer to move beyond the basics to explore the development of more complex C# applications using the WPF (Windows Presentation Foundation).
Your Instructor
Huw Collingbourne has been a programmer for more than 30 years. He is a well-known technology writer in the UK. For over ten years he wrote the Delphi and Object Pascal programming column for PC Plus Magazine. He has also written numerous opinion and programming columns (including tutorials on C, C#, Java, Smalltalk, Delphi and Ruby) for a number of computer magazines, such as Computer Shopper, Flash & Flex Developer’s Magazine, PC Pro, and PC Plus.
He is author of a number of books on programming topics published by Bitwise Books: http://www.bitwisebooks.com.
In the 1980s he was a pop music journalist and interviewed most of the New Romantic stars, such as Duran Duran, Spandau Ballet, Adam Ant, Boy George, and Depeche Mode. He is now writing a series of New Romantic murder mysteries.
At various times Huw has been a magazine publisher, editor, and TV broadcaster. He has an MA in English from the University of Cambridge and holds a 2nd dan black belt in aikido, a martial art which he teaches in North Devon, UK (http://hartlandaikido.co.uk/). The aikido comes in useful when trying (usually unsuccessfully) to keep his Pyrenean Mountain Dogs under some semblance of control.
Course Curriculum
-
PreviewWelcome to the course (2:42)
-
StartReadMe
-
StartA First Media Player (4:32)
-
StartSource Code Archive [Download]
-
PreviewThe Three .NET Designers (3:13)
-
PreviewIntroduction to XAML (3:00)
-
StartDesign with XAML (4:22)
-
StartCreating Event-handlers (6:22)
-
StartSliders (4:52)
-
StartControlling Media Playback (3:53)
-
StartPreviewing Mouse Events (6:19)
-
StartTimers (5:49)
-
StartSetting Slider Defaults (2:43)
-
StartLoading Selected Media Files (1:19)
-
StartMenus (5:33)
-
StartLoading a Media File (3:14)
-
StartLoading a Folder (4:00)
-
StartMusic Non-Stop (3:31)
-
StartWhen Things Go Wrong (4:51)
-
PreviewCreating Playlists (2:12)
-
StartXML Writers (4:25)
-
StartSaving and Loading XML Data (4:45)
-
StartCustomisable Playlists (3:41)
-
StartDrag and Drop Media Files (3:12)
-
StartStyling the User Interface (1:30)
-
StartEffects (4:10)
-
StartAn Alternative Glow Effect (3:03)
-
StartAnimating an Effect (3:03)
-
StartAnother Approach to Animation (6:27)
-
StartStyles (5:01)
-
StartObtaining Media File Information (5:40)
-
StartMultiple Windows (5:00)
-
StartShowing File Information (2:03)
-
StartSaving and Loading Playlists (4:56)
-
StartWhat next? (3:08)