ltmmPlayCtrl.CanSaveObjectSettings Method

Visual Basic

Syntax

object.CanSaveObjectSettings(Flags As Long) As Boolean

Remarks

Determines whether the specified settings can be saved.

The player object's settings can be saved to a stream by calling ltmmPlayCtrl.SaveSettingsToStream. The player object's settings can be saved to a file by calling ltmmPlayCtrl.SaveSettingsToFile.

Settings saved to a file can be loaded using ltmmPlayCtrl.LoadSettingsFromFile. Settings saved to a stream can be loaded using ltmmPlayCtrl.LoadSettingsFromStream.

It may be helpful to call ltmmPlayCtrl.CanSaveObjectSettings before calling either ltmmPlayCtrl.SaveSettingsToFile or ltmmPlayCtrl.SaveSettingsToStream, to make sure the settings you want to save can be saved. If either ltmmPlayCtrl.SaveSettingsToFile or ltmmPlayCtrl.SaveSettingsToStream is called for settings that cannot be saved, the save function will fail.

Multiple settings can be combined in the Flags parameter using the OR operator. However, please note that if settings are combined in the Flags parameter, all those settings must be capable of being saved in order for the CanSaveObjectSettings method to return TRUE. If even one of those settings cannot be saved, then CanSaveObjectSettings will return FALSE.

Platforms

Win32, x64, Mobile

See Also

Elements:

ltmmPlayCtrl.SaveSettingsToFile method, ltmmPlayCtrl.LoadSettingsFromFile method, ltmmPlayCtrl.LoadSettingsFromStream method, ltmmPlayCtrl.SaveSettingsToStream method

Topics:

Multimedia Properties, Methods and Events