Most commonly, freezes of the sort you report trace to resource issues, typically insufficient RAM, too many applications running, low hard drive disk space, or some combination of those. Corrupt or outdated drivers, missing or incorrectly installed updates, 3rd-party software conflicts with your operating system, faulty peripherals and, believe it or not, too many peripherals connected, whether in use or not, all can bring about freezes.
Adding more RAM is generally a good problem solver - if that's an option for you, do it. For other ideas, I suggest you clear all your caches and clean up your hard drive - get rid of or store to external drive or removable media anything that doesn't need to be on your operating drive, make sure all of your operating system, software, and drivers are the latest available for your configuration, and then always disconnect any unneeded peripherals and quit all unrelated/unneeded applications before trying to watch videos or perform other resource-intensive tasks.
A useful general troubleshooting tip site for Mac OS10.x may be found
HERE
A decent general troubleshooting tip site for older Macs may be found
HERE; though aimed at OS 8/9, most of it is applicable to OS10 as well.