Registering media classes with the Media Registry

Generally, you create an installation tool that registers your new media classes with the Media Registry. If users want to be able to manipulate files in the format supported by your new sequence type, they run your installation tool on their systems.

The installation tool makes explicit calls to the Media Registry to install the new class in the system. For example, to make your new sequence and sequence creator available to users, you would provide an installation tool that:

  1. Creates an instance of both your sequence type and media sequence creator.
  2. Instantiates TMediaRegistryCaller.
  3. Calls TMediaRegistryCaller::AddSequenceEntry for each of your classes.
    Similarly, you can remove your classes from the registry by calling TMediaRegistryCaller::RemoveSequenceEntry.
To use the new sequence type as the default, the tool should also call TMediaRegistryCaller::SetDefaultSequence. The framework uses the default sequences when recording media data. For example, if you specify your new audio sequence TSpecialAudioSequence as the default sequence type, when audio data is recorded, it will be recorded as a TSpecialAudioSequence.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker