Hi,
I've got the project burning correctly, but the progress being report by StarBurnX seems to be off. Here is the code:
Code:
private void BurnDisk()
{
try
{
Utility.VideoDVDBurner.Drive = r;
Utility.VideoDVDBurner.VideoDirectory = System.IO.Path.Combine(_currentSession.DvdPaths[_currentDisc], "VIDEO_TS");
Utility.VideoDVDBurner.WriteSpeed = 0;
Utility.VideoDVDBurner.LockTray = true;
Utility.VideoDVDBurner.OnProgress += new IDvdVideoBurnerEvents_OnProgressEventHandler(VideoDVDBurner_OnProgress);
try
{
Utility.VideoDVDBurner.Burn(false);
}
catch (Exception ex)
{
}
BurnComplete delBC = new BurnComplete(onBurnComplete);
this.Invoke(delBC);
}
catch (Exception ex)
{
}
return ;
}
void VideoDVDBurner_OnProgress(int Percent, int TimeRemaining)
{
UpdateProgress delUP = new UpdateProgress(onUpdateProgress);
Object[] delArgs = new Object[2];
delArgs[0] = Percent;
delArgs[1] = TimeRemaining;
this.Invoke(delUP, delArgs);
}
Percent will get to 100 well before the disk is ejected. In addition the TimeRemaining variable is always 0.
Any suggestions for getting a more accurate progress reading?
Thanks,
Jeremy Beckham
High Power Consulting, Inc.