Lite YouTube Embed (modified for Hype)

You may find this helpful in stopping the video on tab change.

The code I provided there is for symbol but simply changed
And you would need to put you own start stop code in the handleVisibilityChange() function