Youtube API / JS issues with selecting videos to play

I have a videos page we created using the youtube API and Javascript in order to play our videos on an embedded player when you click the thumbnails. It works fine here: http://www.securitycameraking.com/videos.php

However, On wordpress, I tried to use similar code, but when you click on the thumbs, I’m getting a javascript error. I tried changing all of the $ to JQUERY and vice versa, but it’s still not working correctly here: http://www.techprosecurity.com/videos/

Read More

I can’t seem to find exactly where the conflict is. I really appreciate any help you can give me.

Related posts

Leave a Reply

1 comment

  1. As John Mentioned, “var player” was inside of “function onYouTubeIFrameAPIReady()”. Once I moved it outside of the function, the thumbnails were clickable.