![]() |
Previous | Next |
The IsLowQuality property retrieves a value indicating whether this is one of the standard low-quality Profile objects.
Syntax
Application.ProfileManager.Item(profileIndex).IsLowQuality
Possible Values
This property is a read-only Boolean.
Example
This example illustrates how this property can be used to filter the collection of profiles so that only profiles of a particular quality are added to the PublishWebHost object:
var Application = window.external;
var ProfileMgr = Application.ProfileManager;
var bHasVideo = Application.Project.TimelineHasVideo;
for (var i = 0; i < ProfileMgr.Count; i++) {
var Profile = ProfileMgr.Item(i);
// Filter out audio profiles for video projects.
if (bHasVideo && Profile.IsAudioProfile) continue;
// Filter out video profiles for audio projects.
if (!bHasVideo && Profile.IsVideoProfile) continue;
// Add any remaining low-quality publishing profiles to the Web host.
if (Profile.IsLowQuality && Profile.IsPublishProfile) {
Application.Project.Properties.PublishWebHost.AddProfile(Profile);
}
}
See Also
Previous | Next |