Version: 1.0

Posted: 2003-01-14

Build Requirements: N/A

Runtime Requirements: Carbon

View Source Code:

Download Sample (“qdmediahandler.zip”, 47.3K)
Download Sample (“qdmediahandler.dmg”, 108.0K)



Description

This sample code has been updated for QuickTime 5.0 README - QDrawMHdlr ABOUT QDrawMHdlr This sample code illustrates one way to write a derived media handler. It's based on the code described in the article "Somewhere in QuickTime: Derived Media Handlers" in develop, issue 14. That article shows how to store QuickDraw pictures as the media in a track. The current sample expands on the original code by making it PowerPC-savvy and cross-platform. Mac OS Build Instructions: Build either the PPC or 68K project using CodeWarrior; then install the resulting extension in the Extensions folder in the System folder and reboot. Alternatively, just drop the extension onto a utility like Reinstaller to make the media handler immediately available. Windows Build Instructions: Build the Windows DLL using CodeWarrior; then copy the DLL to a Windows machine, along with the files QDrawHandler.r, QDMediaCommon.h, and QDrawMHdlr.rez.bat. Once all these files are on a Windows machine, run the batch file QDrawMHdlr.rez.bat, which should create the file QDrawMHdlr.qtx. Move that .qtx file into the System folder in the Windows folder. (You may need to edit the .bat file if the Rez and RezWack utilities are not located in the folder QuickTimeSDKQTDevWinTools.) If you are using MS-Dev, just build the project and then run the batch file QDrawMHdlr.rez.bat; move the .qtx file as described in the preceding paragraph. Enjoy!

Document Revision History

Date Notes
2003-01-14Illustrates one way to write a derived media handler.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.