Just click on the pause icon in the Safari toolbar to pause any video that is playing in the background.