VCL.VideoPlayer Sample

From RAD Studio Code Examples
Jump to: navigation, search

This sample shows the use of the thumb buttons in the Windows task bar to play or pause a video in a Delphi/C++ application.

Location

You can find the VideoPlayer sample project at:

Description

The application creates a main form that has the functionality to open a video. Use the TMediaPlayer controls or the TThumbBarButton in the Windows task bar to play or pause the video.

How to Use the Sample

  1. Navigate to Start | Programs | Embarcadero RAD Studio Rio | Samples and open:
    • Delphi: VideoPlayer.dproj
    • C++: CPPVideoPlayer.cbproj
  2. Press F9 or choose Run > Run.

Files

This project has one source file (Unit3 for Delphi and Unit4 for C++), which contains the class for the main form.

Classes

  • TForm3, the form class, implements the main visual component of the application. It contains a TMediaPlayer component and a TTaskbar component to reproduce videos.

Implementation

Uses

See Also