OK...thanks.
It could be either a software or hardware issue.
-Has this just started and did you recently update the OS or install new software?
-Both times were when watching streaming video? Safari, Firefox, Chrome?
-Do you have all Apple software updates installed and is Adobe Flash up to date?
-Is the Mac a portable or a desktop?
C