Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Program a Media-Player in C#
Rating: 4.3 out of 5(62 ratings)
557 students

Program a Media-Player in C#

Create a video and audio-player using C# and the Windows Presentation Foundation (WPF)
Last updated 8/2019
English

What you'll learn

  • Understand how to design using the WPF.
  • Develop a functional and useful media-playing tool.
  • Add styles and effects to controls
  • Read and write XML data to and from disk
  • Use Windows Shell functions to obtain file metadata
  • Implement file drag-and-drop

Course content

2 sections35 lectures2h 12m total length
  • Welcome to the Course2:42

    How do you go about programming a media-player?

  • ReadMe0:05

    This ReadMe file provides guidance on more sources of information which you may find of use when following this course.

  • A First Media Player4:32

    Follow along to create a basic media player.

  • Source Code Archive [Download]0:05

    Download the code for this course

  • The Three .NET Designers3:13

    Window Forms, Universal Windows or the WPF?

  • Introduction To XAML3:00

    XML for designing the user interface

  • Design with XAML4:22

    How to design a simple WPF application from scratch.

  • Creating Event-handlers6:22

    Dealing with events as they happen at runtime

  • Sliders4:52

    Let’s add controls for volume, balance and more

  • Controlling Media Playback3:53

    How do you change the track playback position?

  • Previewing Mouse Events6:19

    So what is a preview mouse event exactly?

  • Timers5:49

    A timer is like a little invisible clock that ticks away generating tick events.

  • Setting Slider Defaults2:44

    More on sliders…

  • Loading Selected Media Files1:19

    How can we select and load media files?

  • Menus5:33

    How to create WPF menus

  • Loading a Media File3:14

    How to add a File Open dialog

  • Loading A Folder4:00

    How to open a whole directory of media files

  • Music Non-Stop3:31

    Moving through the tracks in a playlist

  • When Things Go Wrong!4:51

    Handling errors

  • WPF Foundations

Requirements

  • Visual Studio (free or commercial edition).
  • Basic knowledge of C# programming (complete beginners should first study my ‘Learn C# Programming’ course)

Description

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.

In this course 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).

Who this course is for:

  • Intermediate C# programmers looking for a project to extend their knowledge
  • C# programmers who want to learn to use the Windows Presentation Foundation (WPF)
  • Programmers wanting to understand how to play media, write XML data and query file metadata