Does anybody know a way to disable the screen saver and then reactivate it when the video is finished?

I've seen this done with commercial programs.

Thanks.