How to detect when video generation has completed
When you create a video, the actual creation process runs in the background. You can see the creation progress on the status bar.
When you try to create this video via automation the CreateVideo call is asynchronous. Your code will get control back as soon as the video is put in the queue for video creation. So how do you detect when the video creation state?
The answer is poll the CreateVideoStatus property on the presentation.
The following return values give you sufficient information about the task.
Const ppMediaTaskStatusNone = 0
Const ppMediaTaskStatusInProgress = 1
Const ppMediaTaskStatusQueued = 2
Const ppMediaTaskStatusDone = 3
Const ppMediaTaskStatusFailed = 4
Supported versions: PowerPoint 2010+
Copyright 1999-2018 (c) Shyam Pillai. All rights reserved.