Do HTML5 videos keep computer on?
I think this is default behavior from the operating system for videos. I was reviewing some power options and sleep options and apple specifically noted that the options are changed during videos and dvds so that it doesnt sleep. Check it outApple Support - Mac not sleeping during video