its2easy
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [WP YouTube Lyte] Can’t pause video programmaticallyNow working in both local and production environments
Forum: Plugins
In reply to: [WP YouTube Lyte] Can’t pause video programmaticallyThank you for your replies
P.S. I tried several ways and it seems like “origin=http://domain.local/” (which is automatically added by plugin if the url contains enablejsapi) breaks youtube api because of the last slash. With “origin=http://domain.local” or without any origin in the query it works as expectedForum: Plugins
In reply to: [WP YouTube Lyte] Can’t pause video programmaticallyyes, my mistake, when I pass simple url there is no enablejsapi.
But if I pass url with parameter, like lyte_preparse(‘https://www.youtube.com/watch?v=u9Iti2qxKsc?enablejsapi=1’), it generates iframe with this parameter<div class="lyte qsa_\&enablejsapi\=1\&origin\=http://domain.local/ lP" id="WYL_u9Iti2qxKsc"><iframe id="iF_u9Iti2qxKsc" width="1280" height="360" src="https://www.youtube-nocookie.com/embed/f98z9tqweqwe?autoplay=1&controls=1&wmode=opaque&rel=0&egm=0&iv_load_policy=3&hd=0&enablejsapi=1&origin=http://domain.local/" frameborder="0" style="" allowfullscreen="" allow="autoplay"></iframe></div>but still not working as if there is no this parameter
Viewing 3 replies - 1 through 3 (of 3 total)