With MPlatform SDK It easy to archive with IMPersist interface, for MFormats SDK you have to use the IMFPersist interface
With next example we are going to use MPlatform MixerClass object, but you can use it the same for other
MPlatform:
MFileClass
MitemClass
MPlaylistClass
MLiveClass
MRendererClass
MElement
MMixerClass
MComposerClass
MWriterClass
MChromaKey
MChromaKey2
MFormats:
MChromaKey
MChromaKey2
Save
It's possible to save the configuration to a string:
string XML;
(m_objMixer as IMPersist).PersistSaveToString(null, out XML, "");
or to an external file:
(m_objMixer as IMPersist).PersistSaveToFile(null, [path], "");
Also, you can save only a scene if you use the value "string" as the first argument
m_objMixer.PersistSaveToString("scenes", out results, "")
Load
Use the string with the XML configuration or file with PersistLoad method
string xml = @"...";
(m_objMixer as IMPersist).PersistLoad(null, xml or [full path to xml file], "");