How to pause a YouTube player when hiding the iframe?

The easiest way to implement this behaviour is by calling the pauseVideo and playVideo methods, when necessary. Inspired by the result of my previous answer, I have written a pluginless function to achieve the desired behaviour. The only adjustments: I have added a function, toggleVideo I have added ?enablejsapi=1 to YouTube’s URL, to enable the … Read more

YouTube iframe API: how do I control an iframe player that’s already in the HTML?

Fiddle Links: Source code – Preview – Small version Update: This small function will only execute code in a single direction. If you want full support (eg event listeners / getters), have a look at Listening for Youtube Event in jQuery As a result of a deep code analysis, I’ve created a function: function callPlayer … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)