Skip to Main Content
Visual Basic 2015 Unleashed
book

Visual Basic 2015 Unleashed

by Alessandro Del Sole
July 2015
Intermediate to advanced content levelIntermediate to advanced
1300 pages
87h 27m
English
Sams
Content preview from Visual Basic 2015 Unleashed

Playing Media

Windows Presentation Foundation enables you to easily reproduce media files, such as audio and videos, through the System.Windows.Controls.MediaElement control. This enables reproducing, among others, all media contents supported by the Windows Media Player application, such as .wmv, .wma, .avi, and .mp3 files. This section shows you how to build a simple media player using MediaElement and Visual Basic 2015. Now add a new Window to an existing project, setting this as the main window. The goal of the next example is to implement a media player and buttons for controlling media reproduction. Code in Listing 31.1 declares the user interface (UI).

LISTING 31.1 Defining the User Interface for a Simple Media Player

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Visual Basic 2015

Beginning Visual Basic 2015

Bryan Newsome

Publisher Resources

ISBN: 9780134196664Purchase book