Shakesy
Shakesy

Reputation: 335

Video continues to play after being hidden in jQuery

I've got a drop down menu which when selected displays a different video for each option. The problem is that if you start watching a video then decide to pick another, the first video will continue to play in the background even though you can't see it resulting in two audio tracks playing at the same time.

The page is here and it relies on this script to run

Upvotes: 0

Views: 68

Answers (1)

andrew
andrew

Reputation: 9583

You could pause the video using the javascript pause() method from your players api

Upvotes: 1

Related Questions