Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Derived Media Handler not called in between Open and Close




Le 17 févr. 06 à 07:28, Olivier <email@hidden> a écrit :

Hello,

I need to write a component that should be called any time an application wants to play video through QuickTime so it can check some data in the movie file (in media "Initialize") and either modify it before playing or let QT do its things as usual.
I thought of creating a derived media handler to override the Apple Video Media Handler ('mhlr'/'vide') which seems to be used for every kind of video files I must check. I decided to capture this media handler so that each time an application opens a video movie, my component is called first. It can then check if it must act on the media or not. If not, it just calls the original media handler. Otherwise it edits the data (in the idle function) before drawing it with the regular codec.

Since my first post, I worked more on this project and I also modified the qdmediahandler and qdmediamaker code samples so that they work in Xcode and so that the qdmediahandler can be linked into qdmediamaker and be traced easily. And I found the difference that makes it work while my component does not: the SubType! If I change the subtype of my own component to the one of qdmediahandler, my component functions are properly called when I open a movie using qdmediahandler media.
So the real question comes down to: How to override the Apple Video Media Handler (type: 'mhlr'; subtype: 'vide'; manufacturer: 'appl') so that my component (type: 'mhlr'; subtype: 'vide'; manufacturer: 'TEST') is called for more functions than Open, CanDo and Close?


I also tried to trace the different selectors used but it did not make lot of sense to me so far (almost no selector belonging to the media handler range is used!)...

Please, can someone tell me what I do wrong and how I can have my component used to play 'vide' medias? This is driving me crazy!

Many thanks in advance.

Olivier

_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.