Jukebox Sample
Description
Video jukebox application.
This application scans a directory for media files and displays a list of the file names. The user can play an individual file or play all of the files in order. The jukebox also displays information about the filter graphs that it creates, including the names of the filters, the names of the pins, and the event codes that are generated.
Note This sample requires Microsoft Foundation Class Library 4.2 (Mfc42.dll).
Path
Source: (SDK root)\Samples\Multimedia\DirectShow\Players\Jukebox
Executable: (SDK root)\Samples\Multimedia\DirectShow\Bin\Jukebox.exe
User's Guide
If a directory name is specified as a command-line argument, the jukebox scans that directory at start-up. Otherwise, it scans the default SDK media directory, which is located at Samples\Multimedia\Media under the SDK root directory. The jukebox displays a list of all the media files in the directory, from which the user can select a file to play.
The jukebox offers the following user-interface elements:
- Play, Stop, Pause, and FrameStep buttons: Use these buttons to control graph playback. (The FrameStep button might be disabled, if the graph does not support IVideoFrameStep.)
- Thru and Loop buttons: Click the Thru button to play through the entire file list, starting from the current selection. Click the Loop button to loop the same file repeatedly. These two buttons are mutually exclusive.
- Mute button: Mutes the audio.
- Filters, Input Pins, and Output Pins: When the jukebox creates a graph, it displays a list of the filters in the graph. If the user selects one of the filter names, the jukebox displays a list of the filter's input pins and a list of the filter's output pins.
- Display Events: If this box is checked, the jukebox displays the event codes that it receives. To clear the list, click the Clear button.
- Properties button: To view a filter's property pages, select the filter name and click the Properties button. If the filter does not support property pages, the button is disabled.