PlayWnd

所属分类:DirextX编程
开发工具:Visual C++
文件大小:6635KB
下载次数:36
上传日期:2007-12-22 01:12:16
上 传 者lilyuu39
说明:  用DirectShow实现的多媒体文件的播放,初学者可借鉴使用
(Achieved using DirectShow multimedia files player, beginners can learn from the use of)

文件列表:
PlayWnd\PlayWnd\PlayWnd.vcproj (8651, 2002-11-12)
PlayWnd\PlayWnd\playwnd.sln (1336, 2002-11-12)
PlayWnd\PlayWnd\playwnd.rc (4194, 2002-11-12)
PlayWnd\PlayWnd\playwnd.ico (25214, 2002-12-03)
PlayWnd\PlayWnd\playwnd.h (3795, 2002-11-12)
PlayWnd\PlayWnd\playwnd.dsw (537, 2002-11-12)
PlayWnd\PlayWnd\playwnd.jpg (2931, 2002-11-12)
PlayWnd\PlayWnd\playwnd.ncb (58368, 2007-05-09)
PlayWnd\PlayWnd\PlayWnd.plg (1715, 2007-05-09)
PlayWnd\PlayWnd\Debug_Unicode\playwnd.res (27856, 2007-05-07)
PlayWnd\PlayWnd\Debug_Unicode\vc60.idb (238592, 2007-05-09)
PlayWnd\PlayWnd\Debug_Unicode\vc60.pdb (217088, 2007-05-09)
PlayWnd\PlayWnd\Debug_Unicode\PlayWnd.pdb (410624, 2007-05-09)
PlayWnd\PlayWnd\Debug_Unicode\PlayWnd.exe (98357, 2007-05-09)
PlayWnd\PlayWnd\Debug_Unicode\PlayWnd.ilk (329944, 2007-05-09)
PlayWnd\PlayWnd\Debug_Unicode\playwnd.sbr (0, 2007-05-09)
PlayWnd\PlayWnd\Debug_Unicode\PlayWnd.pch (8287848, 2007-05-09)
PlayWnd\PlayWnd\Debug_Unicode\playwnd.obj (77721, 2007-05-09)
PlayWnd\PlayWnd\Debug_Unicode\PlayWnd.bsc (3286016, 2007-05-09)
PlayWnd\PlayWnd\playwnd.cpp (37376, 2007-05-09)
PlayWnd\PlayWnd\playwnd.opt (48640, 2007-05-09)
PlayWnd\PlayWnd\PlayWnd.dsp (7895, 2007-05-09)
PlayWnd\复件 PlayWnd\PlayWnd.vcproj (8651, 2002-11-12)
PlayWnd\复件 PlayWnd\playwnd.sln (1336, 2002-11-12)
PlayWnd\复件 PlayWnd\playwnd.rc (4194, 2002-11-12)
PlayWnd\复件 PlayWnd\playwnd.ico (25214, 2002-12-03)
PlayWnd\复件 PlayWnd\playwnd.h (3795, 2002-11-12)
PlayWnd\复件 PlayWnd\playwnd.dsw (537, 2002-11-12)
PlayWnd\复件 PlayWnd\playwnd.jpg (2931, 2002-11-12)
PlayWnd\复件 PlayWnd\playwnd.ncb (58368, 1987-05-10)
PlayWnd\复件 PlayWnd\PlayWnd.plg (256, 2007-05-11)
PlayWnd\复件 PlayWnd\PlayWnd.dsp (7895, 2007-05-09)
PlayWnd\复件 PlayWnd\Debug_Unicode\playwnd.res (27856, 2007-05-07)
PlayWnd\复件 PlayWnd\Debug_Unicode\vc60.idb (238592, 2007-05-11)
PlayWnd\复件 PlayWnd\Debug_Unicode\vc60.pdb (217088, 2007-05-10)
PlayWnd\复件 PlayWnd\Debug_Unicode\PlayWnd.pdb (410624, 2007-05-10)
PlayWnd\复件 PlayWnd\Debug_Unicode\PlayWnd.exe (98357, 2007-05-10)
PlayWnd\复件 PlayWnd\Debug_Unicode\PlayWnd.ilk (336744, 2007-05-10)
... ...

//----------------------------------------------------------------------------- // Name: DirectShow Sample -- PlayWnd // // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- Usage: ===== playwnd Description: ============ This sample is an interactive audio/video media file player. It uses DirectShow to play any supported audio or video media file (MPG, AVI, QT, WAV, AU, SND, MID, etc.). The video will appear in a window on the screen, and you can use a mouse to move the window. If the media has a video component, PlayWnd will read the video's default size and adjust the player's client area to allow the video to play at its preferred default size (taking into account the size of caption bar & borders). You may mute the audio by pressing 'M'. You may toggle full-screen mode by pressing 'F'. You can pause/resume playback with 'P' and stop/rewind with 'S'. To close the media clip, hit ESC, F12, X, or Q. If the media is audio-only, the player will display a small default window. You can specify a media file as the only command line argument: Ex: playwnd \\myserver\mediafiles\video\sample.avi If no file is specified, the application will automatically display the Windows OpenFile dialog so that you can choose a file. Use the menu bar or the close button to exit the application. Accessing media files The media file may exist in your hard disk, CD-ROM, or on a network server. If the file is on a network server: You may read a media file from a network server if you provide the full URL. For example, "playwnd http://myserver/mediafiles/video/myvideo.avi" will read the file from the server into system memory. This approach will fail if the media file is too large to fit in memory. Limitations: This sample will only render media files that are supported by the DirectShow subsystem. If you attempt to play a video (AVI, QuickTime, MPEG) that is encoded with an unsupported Codec, you will only see a black screen or no visible change to the display, although you should hear the associated audio component if it uses a supported format. This sample will not play .ASX files. User Input: Simple user input is supported through the keyboard or through the application's main menu bar. Keyboard Action -------- ------ P Play/Pause toggle S Stop and Rewind to beginning M Audio mute toggle F Full-screen mode toggle Quit to menu (closes file) ESC or Q or X or F12 NOTE: This sample enforces a minimum window size (currently 200x120) to prevent window problems when small videos are resized. You may not resize a video to play in a window smaller than the defined minimum size.

近期下载者

相关文件


收藏者